mfd: ab8500-core: Use DEVICE_ATTR_RO/RW macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 11:43:39 +0000 (19:43 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 15 Jun 2021 12:15:07 +0000 (13:15 +0100)
commitafb349c09601fbf1b0f4d9fc6360d1181ba2ed4f
tree26b441fc3882bd1cfaa8e4c53c2523710552f5ca
parent5089e34f7bba84871f39e8a8989b0c7b88b715b4
mfd: ab8500-core: 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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-core.c