net: stmmac: convert to DEFINE_SHOW_ATTRIBUTE
authorYangtao Li <tiny.windzz@gmail.com>
Mon, 3 Dec 2018 14:22:09 +0000 (09:22 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2018 01:33:43 +0000 (17:33 -0800)
commitfb0d9c6339e0d8d1eb09414a09df8513499bbf79
tree4c9d890d8463cb8ec826c870a95d73205a373d96
parent6f6c74fad8655b1227f659de2e10d6b812acc276
net: stmmac: convert to DEFINE_SHOW_ATTRIBUTE

Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c