iio: chemical: scd30_core: use sysfs_emit() to instead of scnprintf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Jan 2023 14:11:17 +0000 (16:11 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Jan 2023 16:15:13 +0000 (16:15 +0000)
commitebda75fbfa95ea825557325962f1ed6724d557d0
tree5254eddb131715b2cbc1d665c648c79d968cbead
parentbfcae956d9b50ea0e221cefc171604c569017d7e
iio: chemical: scd30_core: use sysfs_emit() to instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230113141117.23353-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/scd30_core.c