]> git.baikalelectronics.ru Git - kernel.git/commit
media: bttv: use DEVICE_ATTR_RO() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 07:10:09 +0000 (09:10 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 10:29:58 +0000 (11:29 +0100)
commitc1ef98f53ffb2914dd5adb358a7465598194bbb9
treeb554ff70beb19ab06abaaa1e6ec759d29dca89d1
parent3e22977d61ae85588a7d3b90bff53cb8fd19b3fe
media: bttv: use DEVICE_ATTR_RO() helper macro

Use DEVICE_ATTR_RO() helper macro instead of DEVICE_ATTR(), which is
simpler and more readable.

Due to the name of the read function of the sysfs attribute is normalized,
there is a natural association.

Link: https://lore.kernel.org/linux-media/20210603071009.11438-1-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/bt8xx/bttv-driver.c