]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mfd: sm501: Use DEVICE_ATTR_RO macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 11:43:34 +0000 (19:43 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 15 Jun 2021 12:02:53 +0000 (13:02 +0100)
commita2cb660b2fefbe5f8b2375bca2da21e67fbf5573
treef630cecbbb0cf670bec7ad7b038f6e73b68f1449
parentae7955f7250efedb959391e73018b607a51e78b2
mfd: sm501: 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/sm501.c