diff options
author | Qing Wang <wangqing@vivo.com> | 2021-10-15 08:49:52 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-05 15:40:27 +0100 |
commit | 6ae210f1b51f1ba18142108e3247d332e6775210 (patch) | |
tree | 238947cb8c7df77569068417ee9e4616e918b51c /sound/arm | |
parent | mfd: altera-a10sr: Include linux/module.h (diff) | |
download | linux-6ae210f1b51f1ba18142108e3247d332e6775210.tar.xz linux-6ae210f1b51f1ba18142108e3247d332e6775210.zip |
mfd: janz-cmoio: Replace snprintf in show functions with sysfs_emit
show() must not use snprintf() when formatting the value to be
returned to user space.
Fix the following coccicheck warning:
drivers/mfd/janz-cmodio.c:157: WARNING: use scnprintf or sprintf.
Use sysfs_emit instead of scnprintf or sprintf makes more sense.
Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/1634280592-4722-1-git-send-email-wangqing@vivo.com
Diffstat (limited to 'sound/arm')
0 files changed, 0 insertions, 0 deletions