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)
commitf1d9f315924f02ed8aabada04a04b20a0c6cc9be
tree6d1fab6449587511c8f253e7d7b6c77a7251c86a
parent53a370f621a04a06bd2402c13580d7e4eb172c98
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