OSDN Git Service

hw_random: timeriomem_rng: Allow setting RNG quality from platform data
authorRick Altherr <raltherr@google.com>
Mon, 22 May 2017 21:12:24 +0000 (14:12 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 1 Jun 2017 04:55:58 +0000 (12:55 +0800)
commit284e76387c38260e834c99b010a68d75fc46b394
treed2558a6b59909e0ee71a276d09101a33cb124e9f
parentb14c53451719dc6ec8e6387e5be3be23294a6f1d
hw_random: timeriomem_rng: Allow setting RNG quality from platform data

When a hw_random device's quality is non-zero, it will automatically be
used to fill the kernel's entropy pool.  Since timeriomem_rng is used by
many different devices, the quality needs to be provided by platform
data or device tree.

Signed-off-by: Rick Altherr <raltherr@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/timeriomem-rng.c
include/linux/timeriomem-rng.h