]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9acbe0f9c6a6ea4d872a1999bc22e46466960a7
tree76534c9ac7280f1c4696e8caf383989b598c8945
parent1a0482164ec2595176bc079172dc372581892d99
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