]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: omap: Replace sprintf() with sysfs_emit()
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2022 17:01:08 +0000 (19:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 15 Aug 2022 00:19:51 +0000 (01:19 +0100)
commit840026b6d1169a37c52fca527e5e074154226d57
treecff70a3fbabc94fbe63c9270dff99318493a1451
parent5a820512fb9984db4831b28c8f0ac8b70d07b4aa
ASoC: omap: Replace sprintf() with sysfs_emit()

For sysfs outputs, it's safer to use a new helper, sysfs_emit(),
instead of the raw sprintf() & co.  This patch replaces the open code
with new helpers, sysfs_emit() and sysfs_emit_at(), with the proper
string offset.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20220801170108.26340-9-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/omap-mcbsp-st.c
sound/soc/ti/omap-mcbsp.c