lkml.org 
[lkml]   [2023]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] hwrng: imx-rngc - simplify register definitions
Date
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

\
 
 \ /
  Last update: 2023-04-27 21:08    [W:0.289 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site