Qing Wang 08411e3461
spi: 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/spi/spi-tle62x0.c:144: WARNING: use scnprintf or sprintf.

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Signed-off-by: Qing Wang <wangqing@vivo.com>
Link: https://lore.kernel.org/r/1634280668-4954-1-git-send-email-wangqing@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-10-15 16:11:01 +01:00
..
2021-07-20 13:34:05 +01:00
2020-10-08 23:00:06 +01:00
2021-10-05 13:10:01 +01:00
2021-09-01 15:25:28 -07:00
2021-09-13 02:00:26 +01:00
2021-08-12 12:19:19 +01:00
2020-10-24 10:33:08 -07:00
2021-08-26 12:09:38 +01:00
2021-10-14 14:15:46 +01:00
2021-09-27 12:59:15 +01:00