]> git.baikalelectronics.ru Git - kernel.git/commit
net: atm: use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 May 2021 13:36:45 +0000 (21:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 May 2021 22:50:54 +0000 (15:50 -0700)
commit1b47064b6f99b34cb06d80d8e4f9806d2ee29fb4
tree68bcc02d92aaf26b675fa1c1b73375c4e0a90e67
parentc19e0c8a6f80ea5df4aa7ae9426d1a9ebb25a910
net: atm: use DEVICE_ATTR_RO macro

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

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/atm_sysfs.c