crypto: hisilicon/trng - add version to adapt new algorithm
authorWeili Qian <qianweili@huawei.com>
Wed, 7 Apr 2021 09:44:33 +0000 (17:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Apr 2021 11:16:31 +0000 (21:16 +1000)
commit6e57871c3b756029f44caf08815a9cdee871eb59
tree51f4093703729dd75371a21f60a8ea1be6e22254
parent0f19dbc994dcb7f7137f2e056e813c84530b7538
crypto: hisilicon/trng - add version to adapt new algorithm

Kunpeng930 supports trng and prng, but Kunpeng920 only supports trng.

Therefore, version information is added to ensure that prng is not
registered to Crypto subsystem on Kunpeng920.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/trng/trng.c