dmaengine: use sysfs_emit() to instead of scnprintf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Jan 2023 11:11:41 +0000 (13:11 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 10 Feb 2023 06:07:45 +0000 (11:37 +0530)
commit40e171c2d306e42057433fb2c2f1fee2d385e1c4
tree4df3e310cf8aae2b5242ef653e0e3c74f9b05f03
parent8b5443102cfca7a4346a50918f8ecc8a1644ea2e
dmaengine: 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/20230130111141.59627-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c