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)
commitf731707c56670e246ca13b1b8d378eac1741c1b5
tree726bd34125198b651650ce51bac25f0e8b93f8cf
parent681e4a76452172d06648d5337cc3207c866297db
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