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

From: Herbert Xu

Date: Thu Oct 08 2026 - 04:28:00 EST


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@xxxxxxxxxx>
> ---
> drivers/char/hw_random/atmel-rng.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)

Patch 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