]> git.baikalelectronics.ru Git - kernel.git/commit
can: janz-ican3: use DEVICE_ATTR_RO/RW() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 11:17:39 +0000 (19:17 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 25 Jul 2021 09:36:26 +0000 (11:36 +0200)
commit264863a55f47cf6fd97cc2245e57dd0d9eded9a7
tree726bd34125198b651650ce51bac25f0e8b93f8cf
parentc6dc4e645234480a0e10bfa5876ecc300e7e3b00
can: janz-ican3: use DEVICE_ATTR_RO/RW() helper macro

Use DEVICE_ATTR_RO/RW() helper macro instead of plain DEVICE_ATTR(), which
makes the code a bit shorter and easier to read.

Link: https://lore.kernel.org/r/20210603111739.11983-1-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/janz-ican3.c