hwrng: core - Reset user selected rng by writing "" to rng_current
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Fri, 27 Oct 2017 17:04:04 +0000 (22:34 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:25 +0000 (22:11 +0800)
commit142a27f0a731ddcf467546960a5585970ca98e21
tree2fe8b7a914a8df36ff02314e699910ed4d275885
parentc2afad6c6105783a72a2f7b69834a489120a1a7c
hwrng: core - Reset user selected rng by writing "" to rng_current

User is able to select a chosen rng by writing its name to rng_current
but there is no way to reset it without unbinding the rng. Let user
write "" to rng_current and delesect the chosen rng.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
reviewed-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c