mfd: kempld-core: Use DEVICE_ATTR_RO macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 11:43:36 +0000 (19:43 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 15 Jun 2021 12:13:54 +0000 (13:13 +0100)
commitcd5bde2ce8cc869e0a4698f87dcccad6f0aac70f
treecf490ca84a87f46c5699465d2da074ebc0a5b1ec
parent426d94a91456e9009296823f023de502d7bc28e4
mfd: kempld-core: Use DEVICE_ATTR_RO macro

Use DEVICE_ATTR_RO 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/kempld-core.c