[PATCH v2 0/3] hwrng: imx-rngc - simplify register definitions
From: Martin Kaiser
Date: Fri May 19 2023 - 12:05:37 EST
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).
v2:
- simpler check if random bytes are available
Martin Kaiser (3):
hwrng: imx-rngc - simpler check for available random bytes
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 | 35 +++++++++++++------------------
1 file changed, 15 insertions(+), 20 deletions(-)
--
2.30.2