diff options
author | Andy Shevchenko <[email protected]> | 2022-08-26 20:07:15 +0300 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2022-09-28 17:52:02 +0200 |
commit | 4709f9ea338d34276d747c88323f964e148c0c09 (patch) | |
tree | a43862715be177f0dc96cf951c4ad9248a1b7db0 /lib/string_helpers.c | |
parent | b4319802867515ca6e492bff54879bc22a71a62c (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 <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions