[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZCfmCmxobIKaBdT4@gondor.apana.org.au>
Date: Sat, 1 Apr 2023 16:06:34 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Yang <mmyangfl@...il.com>
Cc: linux-crypto@...r.kernel.org, Weili Qian <qianweili@...wei.com>,
Zhou Wang <wangzhou1@...ilicon.com>,
"David S. Miller" <davem@...emloft.net>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] crypto: hisilicon/trng - add support for HiSTB TRNG
On Fri, Mar 31, 2023 at 06:19:34PM +0800, David Yang wrote:
>
> + struct histb_trng_priv *priv = (struct histb_trng_priv *) rng->priv;
Plesae don't use rng->priv at all. We're trying to phase it
out because it encourages horrible casting like this.
Please follow the model used in the meson driver.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists