]> git.baikalelectronics.ru Git - kernel.git/commit
media: imon: use DEVICE_ATTR_RW() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 07:02:30 +0000 (09:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jun 2021 13:57:51 +0000 (15:57 +0200)
commit1cf17232f1167b0550e069e1eb3fcb0421a0475f
tree6d1fab6449587511c8f253e7d7b6c77a7251c86a
parent2c0a057ab8ad5375471f4ab2cf8a0d6637844004
media: imon: use DEVICE_ATTR_RW() helper macro

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

Due to the names of the read and write functions of the sysfs attribute is
normalized, there is a natural association.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/imon.c