]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: use DEVICE_ATTR_RW macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 May 2021 13:46:19 +0000 (21:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 May 2021 22:50:54 +0000 (15:50 -0700)
commitaa65622451ce0c315f586601f731738a39d6bb31
tree078bd3dfbc4da7a89b08a435ddaefbe3c08a4bf7
parent4882edc1dc532116ab5d01f5ca7e872e8627b9b9
net: cdc_ncm: use DEVICE_ATTR_RW macro

Use DEVICE_ATTR_RW 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/cdc_ncm.c