summaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-08-26 20:07:15 +0300
committerThierry Reding <thierry.reding@gmail.com>2022-09-28 17:52:02 +0200
commit4709f9ea338d34276d747c88323f964e148c0c09 (patch)
treea43862715be177f0dc96cf951c4ad9248a1b7db0 /lib/mpi
parentb4319802867515ca6e492bff54879bc22a71a62c (diff)
pwm: sysfs: Replace sprintf() with sysfs_emit()
While the uses in this code are unproblematic, it's generally safer for sysfs outputs to use the new sysfs_emit() helper instead of raw calls to sprintf() and friends. This also has the benefit of annotating the uses, which makes them easier to audit and potentially use them to generate sysfs documentation from them. This patch replaces existing sprintf() calls straightforwardly with the new helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions