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

From: Herbert Xu
Date: Wed May 24 2023 - 06:15:26 EST


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@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt