]> 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)
commitc5546d78e36f699b4301d6385408190f7825a4d9
tree76534c9ac7280f1c4696e8caf383989b598c8945
parent8466dc74844805a8b5b1b30ec97df44a8edc4baa
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