OSDN Git Service

hwrng: iproc-rng200 - Move enable/disable in separate function
authorMatthias Brugger <mbrugger@suse.com>
Fri, 18 Dec 2020 10:57:08 +0000 (11:57 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Jan 2021 21:41:37 +0000 (08:41 +1100)
commit256693a36203f51b0a3659c8b215a7026a03a3f1
tree1b65fcf85bae09bed8c1e98974876097725eab05
parent96a6af540396ed93ba231d0ae2e6fe196dc22032
hwrng: iproc-rng200 - Move enable/disable in separate function

We are calling the same code for enable and disable the block in various
parts of the driver. Put that code into a new function to reduce code
duplication.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/iproc-rng200.c