OSDN Git Service

sfc: falcon: use DEVICE_ATTR_*() macro
authorYueHaibing <yuehaibing@huawei.com>
Sun, 23 May 2021 03:24:09 +0000 (11:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 00:18:42 +0000 (17:18 -0700)
commit4934fb7dc409c2b14dc49a1f6d9024bec87431a4
tree76534c9ac7280f1c4696e8caf383989b598c8945
parent3880fc37beba5d6878ef4c8d57f21683974a211b
sfc: falcon: use DEVICE_ATTR_*() macro

Use DEVICE_ATTR_*() 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/ethernet/sfc/falcon/efx.c
drivers/net/ethernet/sfc/falcon/falcon_boards.c