linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* hwrng: ingenic: simplify the code
@ 2023-07-10 20:27 Martin Kaiser
  2023-07-10 20:27 ` [PATCH 1/7] hwrng: ingenic - enable compile testing Martin Kaiser
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Martin Kaiser @ 2023-07-10 20:27 UTC (permalink / raw)
  To: Herbert Xu
  Cc: aric.pzqi, linux-crypto, linux-arm-kernel, linux-kernel,
	Martin Kaiser

Simplify the ingenic-trng driver a bit. Switch to devm_clk_get_enabled and
devm_hwrng_register. Remove some unused code.

The changes were compile-tested only (I don't have this hardware).

Martin Kaiser (7):
  hwrng: ingenic - enable compile testing
  hwrng: ingenic - remove two unused defines
  hwrng: ingenic - remove dead assignments
  hwrng: ingenic - use devm_clk_get_enabled
  hwrng: ingenic - use dev_err_probe in error paths
  hwrng: ingenic - don't disable the rng in ingenic_trng_remove
  hwrng: ingenic - switch to device managed registration

 drivers/char/hw_random/Kconfig        |  3 +-
 drivers/char/hw_random/ingenic-trng.c | 57 ++++++---------------------
 2 files changed, 12 insertions(+), 48 deletions(-)

-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-22  2:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 20:27 hwrng: ingenic: simplify the code Martin Kaiser
2023-07-10 20:27 ` [PATCH 1/7] hwrng: ingenic - enable compile testing Martin Kaiser
2023-07-10 20:27 ` [PATCH 2/7] hwrng: ingenic - remove two unused defines Martin Kaiser
2023-07-10 20:27 ` [PATCH 3/7] hwrng: ingenic - remove dead assignments Martin Kaiser
2023-07-10 20:27 ` [PATCH 4/7] hwrng: ingenic - use devm_clk_get_enabled Martin Kaiser
2023-07-10 20:27 ` [PATCH 5/7] hwrng: ingenic - use dev_err_probe in error paths Martin Kaiser
2023-07-10 20:27 ` [PATCH 6/7] hwrng: ingenic - don't disable the rng in ingenic_trng_remove Martin Kaiser
2023-07-10 20:27 ` [PATCH 7/7] hwrng: ingenic - switch to device managed registration Martin Kaiser
2023-07-22  2:13 ` hwrng: ingenic: simplify the code Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).