ASoC: imx-audmux: use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Mon, 5 Dec 2022 11:43:47 +0000 (19:43 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 7 Dec 2022 14:19:14 +0000 (14:19 +0000)
commita39bc7cf8e284653fb6fd9d897f269f4ac80cf52
tree77d1e070b43278dfa154cd1c6e5e27dc8630e7ad
parentef0a098efb36660326c133af9b5a04a96a00e3ca
ASoC: imx-audmux: use sysfs_emit() to instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202212051943476482106@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-audmux.c