]> git.baikalelectronics.ru Git - kernel.git/commit
can: esd_usb2: use DEVICE_ATTR_RO() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 11:09:02 +0000 (19:09 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 25 Jul 2021 09:36:26 +0000 (11:36 +0200)
commitc6dc4e645234480a0e10bfa5876ecc300e7e3b00
treed7915de2dd8c492e46625a2db4f166fe00c946df
parent3a8bd6aed20044a129d09fff1d1afce21afeb9a0
can: esd_usb2: use DEVICE_ATTR_RO() helper macro

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

Link: https://lore.kernel.org/r/20210603110902.11930-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/usb/esd_usb2.c