net: xenbus: convert to DEFINE_SHOW_ATTRIBUTE
authorYangtao Li <tiny.windzz@gmail.com>
Mon, 10 Dec 2018 15:53:29 +0000 (10:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Dec 2018 20:05:20 +0000 (12:05 -0800)
commit5061e3f43b7da28e1fe13c300b66fc5a4f98b0e8
treeb29044ce54875df997e29a600c96e17d40bda0c7
parentf578e6764958704960e78daf624887da1d3e6d90
net: xenbus: convert to DEFINE_SHOW_ATTRIBUTE

Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c