[PATCH 0/3] Use a local device pointer for hwrng drivers instead of casting constantly
Sakari Ailus
sakari.ailus at linux.intel.com
Thu Apr 10 00:06:20 PDT 2025
Hi folks,
Clean up random number reading by adding a local shorthand variable for a
struct device pointer used on multiple Runtime PM functions. The changes
are very similar in all three drivers.
Sakari Ailus (3):
hwrng: atmel - Add a local variable for struct device pointer
hwrng: mtk - Add a local variable for struct device pointer
hwrng: npcm - Add a local variable for struct device pointer
drivers/char/hw_random/atmel-rng.c | 9 +++++----
drivers/char/hw_random/mtk-rng.c | 7 ++++---
drivers/char/hw_random/npcm-rng.c | 7 ++++---
3 files changed, 13 insertions(+), 10 deletions(-)
--
2.39.5
More information about the Linux-mediatek
mailing list