video: fbdev: mb862xx: use DEVICE_ATTR_RO macro
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 1 Jun 2021 09:08:52 +0000 (17:08 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Jun 2021 08:32:49 +0000 (10:32 +0200)
commitff323d6d72e1e4971c8ba9e2f3cf8afc48f22383
tree2b282d6e0b2b1b5cec5ca48bb431337d94e43774
parentc5ef15ae09637fb51ae43e1d1d98329d67dd4fd6
video: fbdev: mb862xx: use DEVICE_ATTR_RO macro

Use DEVICE_ATTR_RO 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: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210601090852.10531-1-thunder.leizhen@huawei.com
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c