[PATCH 0/3] hwrng: imx-rngc - simplify register definitions

Martin Kaiser martin at kaiser.cx
Thu Apr 27 11:53:54 PDT 2023


This series simplifies some definitions for register bits and fields. We can
then use the FIELD_GET macro to read register fields instead of masking and
shifting manually.

Tested on an imx258 board (rngb).

Martin Kaiser (3):
  hwrng: imx-rngc - use bitfield macros to read fifo level
  hwrng: imx-rngc - use bitfield macros to read rng type
  hwrng: imx-rngc - use BIT(x) for register bit defines

 drivers/char/hw_random/imx-rngc.c | 32 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

-- 
2.30.2




More information about the linux-arm-kernel mailing list