ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication
authorPeng Donglin <dolinux.peng@gmail.com>
Wed, 14 Feb 2018 14:48:07 +0000 (22:48 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 15 Feb 2018 15:24:43 +0000 (15:24 +0000)
commitc15b2a1d185bcdab6556492b81b55ba9e658e201
treeba5e7e74a36f563d74caa7e6689c97b4f6dd8f24
parent7a2ccad58106696b7909815cc7ab359ae2743bcc
ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication

There is some duplicate code in soc-core.c, and the kernel provides
DEFINE_SHOW_ATTRIBUTE() helper macro to decrease it in seq_file.h.

Signed-off-by: Peng Donglin <dolinux.peng@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c