diff options
author | 2022-06-29 01:17:45 +0300 | |
---|---|---|
committer | 2022-07-19 10:54:42 +0100 | |
commit | 86da8be35c00e01b8b277896d8e81fb33bf22d06 (patch) | |
tree | b4806a8da30a3a031bc788ac1c86ce99fe27e131 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | mfd: intel_soc_pmic_bxtwc: Use bits.h macros for all masks (diff) | |
download | wireguard-linux-86da8be35c00e01b8b277896d8e81fb33bf22d06.tar.xz wireguard-linux-86da8be35c00e01b8b277896d8e81fb33bf22d06.zip |
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
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions