diff options
author | Mark Brown <broonie@kernel.org> | 2022-08-15 17:22:21 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-15 17:22:21 +0100 |
commit | 79a8ccbd6fc220267934ce398147af14b633eca6 (patch) | |
tree | 2a17bd6916f887c1529e24c697c8e39230e071e1 /sound/soc/ti/omap-mcbsp.c | |
parent | 088f115c6ff664c8afe003bd542e1e662a72aaed (diff) | |
parent | a111ae4d7f0796cf2ea0e8bf3ab6c06a401e0560 (diff) |
ASoC: Replace sprintf() with sysfs_emit()
Merge series from Takashi Iwai <tiwai@suse.de>:
This is a patch set for rather simple conversions from the plain
sprintf() & co to the new helpers, sysfs_emit() and sysfs_emit_at().
No functional changes are expected.
Diffstat (limited to 'sound/soc/ti/omap-mcbsp.c')
-rw-r--r-- | sound/soc/ti/omap-mcbsp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c index c4ac1f30b9fe..0b377bb7737f 100644 --- a/sound/soc/ti/omap-mcbsp.c +++ b/sound/soc/ti/omap-mcbsp.c @@ -517,7 +517,7 @@ static ssize_t prop##_show(struct device *dev, \ { \ struct omap_mcbsp *mcbsp = dev_get_drvdata(dev); \ \ - return sprintf(buf, "%u\n", mcbsp->prop); \ + return sysfs_emit(buf, "%u\n", mcbsp->prop); \ } \ \ static ssize_t prop##_store(struct device *dev, \ @@ -560,11 +560,11 @@ static ssize_t dma_op_mode_show(struct device *dev, for (s = &dma_op_modes[i]; i < ARRAY_SIZE(dma_op_modes); s++, i++) { if (dma_op_mode == i) - len += sprintf(buf + len, "[%s] ", *s); + len += sysfs_emit_at(buf, len, "[%s] ", *s); else - len += sprintf(buf + len, "%s ", *s); + len += sysfs_emit_at(buf, len, "%s ", *s); } - len += sprintf(buf + len, "\n"); + len += sysfs_emit_at(buf, len, "\n"); return len; } |