]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mfd: wm831x: Use DEVICE_ATTR_RO macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 11:43:31 +0000 (19:43 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 15 Jun 2021 12:01:45 +0000 (13:01 +0100)
commit981ce06ab8dd642aff90ce91726da1c5e73eb25b
tree6f0ea59028ca4b71764cc38e30a4aa86f0b3a564
parent3da286aa4a8c1fe807ac082edc043c1d2d538d28
mfd: wm831x: 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>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm831x-otp.c