diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-02 16:05:26 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-02 12:03:37 +0100 |
commit | ba499a50ce5846dd6f7a6df92c1f01d4201b5cce (patch) | |
tree | 37ba965abc5e8ed4324434903974e1be3a1730a0 /drivers/regulator/as3722-regulator.c | |
parent | de20b747c5836ffc6768914b95d7617139fac4f4 (diff) |
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>
Diffstat (limited to 'drivers/regulator/as3722-regulator.c')
0 files changed, 0 insertions, 0 deletions