]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: intel_soc_pmic_bxtwc: Use sysfs_emit() instead of sprintf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Jun 2022 22:17:45 +0000 (01:17 +0300)
committerLee Jones <lee@kernel.org>
Tue, 19 Jul 2022 09:54:42 +0000 (10:54 +0100)
commit8f4e572ba835effb2dbe4c3c3b8d10088f56f28e
treeb4806a8da30a3a031bc788ac1c86ce99fe27e131
parent896fac5738f675f510b65f53f0ecbaa459dd3676
mfd: intel_soc_pmic_bxtwc: Use sysfs_emit() instead of sprintf()

sysfs_emit() is preferred over sprintf() when formatting the value to be
returned to user space in show() functions, because it knows about sysfs
buffer specifics and has sanity checks.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220628221747.33956-9-andriy.shevchenko@linux.intel.com
drivers/mfd/intel_soc_pmic_bxtwc.c