sfc: use DEVICE_ATTR_*() macro
authorYueHaibing <yuehaibing@huawei.com>
Sun, 23 May 2021 03:20:30 +0000 (11:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 00:18:42 +0000 (17:18 -0700)
commit3880fc37beba5d6878ef4c8d57f21683974a211b
tree93cd024d1f2848a011c18e66d7850a87fa726fe2
parent52af13a41489d7bbc1932d17583eff6e5fffc820
sfc: 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/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx_common.c