mfd: janz-cmodio: Use DEVICE_ATTR_RO macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 11:43:37 +0000 (19:43 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 15 Jun 2021 12:14:23 +0000 (13:14 +0100)
commit24676b3ef8c4621964d71b10678b87414417cc7f
treee08d927a7a850bd0738d6e6caa7791850f9f6164
parentcd5bde2ce8cc869e0a4698f87dcccad6f0aac70f
mfd: janz-cmodio: 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/janz-cmodio.c