regulator: convert to DEFINE_SHOW_ATTRIBUTE
authorYangtao Li <tiny.windzz@gmail.com>
Sat, 15 Dec 2018 08:21:48 +0000 (03:21 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 20 Dec 2018 14:38:42 +0000 (14:38 +0000)
commit3e60b4fc86710cd2095628c67b296e7cc4b239c1
treed05d6540d06b8f659b4539595b12ba18c0e56279
parentf4c8f980283b4832dad4d9ff4d5ecb3d7763efae
regulator: 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: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/dbx500-prcmu.c