[PATCH v2 0/3] hwrng: imx-rngc - simplify register definitions
Herbert Xu
herbert at gondor.apana.org.au
Wed May 24 03:14:28 PDT 2023
On Fri, May 19, 2023 at 06:04:30PM +0200, Martin Kaiser wrote:
> 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
All applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list