]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: DAPM: Replace sprintf() calls with sysfs_emit_at()
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2022 17:01:07 +0000 (19:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 15 Aug 2022 00:19:50 +0000 (01:19 +0100)
commitc5e3db6c30fca5b41d2a76c91df38bcebc31b435
treec4c2b2cfae5c0ebfe8ea9b39ea88eb67902451b9
parentcb2d3e321155b2dc286f2b462fd44f07e1f61ebc
ASoC: DAPM: Replace sprintf() calls with sysfs_emit_at()

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 a new helper, sysfs_emit_at(), by passing the string offset.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20220801170108.26340-8-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c