Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d9a53b01 authored by Lee Jones's avatar Lee Jones Committed by Herbert Xu
Browse files

hwrng: core - Simplify RNG switching from sysfs



If we attempt to use sysfs to change the current RNG in the usual
way i.e. issuing something like:

`echo 8a8a000.rng > /sys/devices/virtual/misc/hw_random/rng_current`

... it will fail because the code doesn't currently take the '\n'
into consideration.  Well, now it does.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarPeter Korsgaard <peter@korsgaard.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cb2c316b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment