hwrng: core - Use DEVICE_ATTR_<RW|RO> macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 May 2021 13:57:13 +0000 (21:57 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 May 2021 07:11:45 +0000 (15:11 +0800)
commit98f481f22de235b5356f9fa94b0fcffeacc772d8
tree4aec56e51c721799c3635605818aa805916f864f
parentaa22cd7f67807eb8047221e57f8a327432ab8309
hwrng: core - Use DEVICE_ATTR_<RW|RO> macro

Use DEVICE_ATTR_RW()/DEVICE_ATTR_RO() helper instead of
plain DEVICE_ATTR, which makes the code a bit shorter and
easier to read.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c