Skip to content

Use a local device pointer for hwrng drivers instead of casting constantly

Sakari Ailus linux-arm-kernel linux-crypto linux-mediatek openbmc 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 2 repliesSuperseded

since v2 from the cover letter

- Add a struct device pointer field to device context structs, don't use struct hwrgn priv field for the purpose anymore.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hwrng: atmel - Add struct device pointer to device context structdrivers/char/hw_random/atmel-rng.c+6 -50 replies
2/3hwrng: mtk - Add struct device pointer to device context structdrivers/char/hw_random/mtk-rng.c+5 -40 replies
3/3hwrng: npcm - Add struct device pointer to device context structdrivers/char/hw_random/npcm-rng.c+5 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Use a local device pointer for hwrng drivers instead of casting constantly

Hi folks,

Clean up random number reading by storing struct device pointer to device context struct. The changes are very similar in all three drivers.

since v2:

- Add a struct device pointer field to device context structs, don't use struct hwrgn priv field for the purpose anymore.

Sakari Ailus (3):
hwrng: atmel - Add struct device pointer to device context struct
hwrng: mtk - Add struct device pointer to device context struct
hwrng: npcm - Add struct device pointer to device context struct

 drivers/char/hw_random/atmel-rng.c | 11 ++++++-----
 drivers/char/hw_random/mtk-rng.c   |  9 +++++----
 drivers/char/hw_random/npcm-rng.c  |  9 +++++----
 3 files changed, 16 insertions(+), 13 deletions(-)
Signature · 1 line
2.39.5