[PATCH] hwrng: atmel - use HZ_PER_MHZ in atmel_trng_init()

Herbert Xu herbert at gondor.apana.org.au
Thu Oct 8 01:22:06 PDT 2026


On Tue, Sep 29, 2026 at 11:37:50PM +0200, Thorsten Blum wrote:
> Combine and inline the rate check to simplify the code. Drop the local
> rate variable and use HZ_PER_MHZ instead of the hard-coded frequency.
> 
> Signed-off-by: Thorsten Blum <blum at kernel.org>
> ---
>  drivers/char/hw_random/atmel-rng.c | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)

Patch 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