OSDN Git Service

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)
commit48afdaea04eb691df3244b6a361f1a0c4540ff45
tree68bcc02d92aaf26b675fa1c1b73375c4e0a90e67
parent25173dd4093a24e977e2af9cd5654c205bf13547
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