mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 09:34:22 +08:00
ASoC: core: 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 sprintf() usage straightforwardly with a new helper, sysfs_emit(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20220801170108.26340-7-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
11af2b1e33
commit
628d0f72d5
@ -72,7 +72,7 @@ static ssize_t pmdown_time_show(struct device *dev,
|
||||
{
|
||||
struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev);
|
||||
|
||||
return sprintf(buf, "%ld\n", rtd->pmdown_time);
|
||||
return sysfs_emit(buf, "%ld\n", rtd->pmdown_time);
|
||||
}
|
||||
|
||||
static ssize_t pmdown_time_store(struct device *dev,
|
||||
|
Loading…
Reference in New Issue
Block a user