hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c
authorDavid Yang <mmyangfl@gmail.com>
Fri, 21 Apr 2023 16:56:49 +0000 (00:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 May 2023 10:48:01 +0000 (18:48 +0800)
commit903e6ada01f305eb6c82a27f48bf1ea18eb38a99
tree089538ade3c681c045725bed5973697812799665
parent69f1c387ba700f69e9fdad6d6ce44a3bb774dbff
hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c

Move to drivers/char/hw_random since histb-(t)rng does not provide
cryptography pseudo rng.

histb-rng is pretty like hisi-rng, but after investigation, we confirm
there is no RNG_PHY_SEED register on histb-rng so a separate driver is
needed.

Still we rename relevant function names to match those in hisi-rng.

Link: https://lore.kernel.org/r/20230401164448.1393336-1-mmyangfl@gmail.com
Signed-off-by: David Yang <mmyangfl@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Makefile
drivers/char/hw_random/histb-rng.c [moved from drivers/crypto/hisilicon/trng/trng-stb.c with 53% similarity]
drivers/crypto/hisilicon/Kconfig
drivers/crypto/hisilicon/Makefile
drivers/crypto/hisilicon/trng/Makefile