regulator: userspace-consumer: use DEVICE_ATTR_RO/RW macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 08:05:26 +0000 (16:05 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 2 Jun 2021 11:03:37 +0000 (12:03 +0100)
commitba499a50ce5846dd6f7a6df92c1f01d4201b5cce
tree37ba965abc5e8ed4324434903974e1be3a1730a0
parentde20b747c5836ffc6768914b95d7617139fac4f4
regulator: userspace-consumer: use DEVICE_ATTR_RO/RW macro

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

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210602080526.11117-1-thunder.leizhen@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/userspace-consumer.c