component: convert to DEFINE_SHOW_ATTRIBUTE
authorYangtao Li <tiny.windzz@gmail.com>
Sat, 15 Dec 2018 08:36:36 +0000 (03:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Dec 2018 15:33:18 +0000 (16:33 +0100)
commitc0b8a8709ebe0f72523a1e76f30a1bde821c060c
tree11c23f37f9266f80aa5a998abeba05db27b0b967
parent4f4b374332ec0ae9c738ff8ec9bed5cd97ff9adc
component: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/component.c