net: ethernet: mtk_eth_soc: use DEFINE_SHOW_ATTRIBUTE to simplify code
authorLiu Shixin <liushixin2@huawei.com>
Tue, 27 Sep 2022 11:19:25 +0000 (19:19 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Sep 2022 07:57:23 +0000 (09:57 +0200)
commit1a0c667ea8e34edbad27f9c7f435e4825fab2163
tree9a0f903fc40fe34a4a4d5b7d7d6bf9f5d837378b
parent6db239f01abc7e04a9bc2a0c59c1db1c1ebf9eb3
net: ethernet: mtk_eth_soc: use DEFINE_SHOW_ATTRIBUTE to simplify code

Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code.
No functional change.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link: https://lore.kernel.org/r/20220927111925.2424100-1-liushixin2@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c