OSDN Git Service

net: usb: hso: use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 May 2021 13:41:16 +0000 (21:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 May 2021 22:50:54 +0000 (15:50 -0700)
commit7567d603b3f1c5ee799e311d0e48932bfc449028
tree4e669e38c188da18709013f48144f62e2d327196
parent48afdaea04eb691df3244b6a361f1a0c4540ff45
net: usb: hso: 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>
drivers/net/usb/hso.c