diff options
author | Lukas Wunner <lukas@wunner.de> | 2024-04-20 23:00:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-04 18:37:03 +0300 |
commit | aa1fd9cdabaae0d558333c3f5cc9baaa8d83cb24 (patch) | |
tree | b1b13073bd0a69e4385d85debf29dd7b0efff3fb /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3cc50d07be10f67aff836f8247a240ec132c6a67 (diff) | |
download | linux-aa1fd9cdabaae0d558333c3f5cc9baaa8d83cb24.tar.xz |
hwmon: Use device_show_string() helper for sysfs attributes
Deduplicate sysfs ->show() callbacks which expose a string at a static
memory location. Use the newly introduced device_show_string() helper
in the driver core instead by declaring those sysfs attributes with
DEVICE_STRING_ATTR_RO().
No functional change intended.
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/23c2031acaa64f1c02f00e817c3f7e4466d17ab2.1713608122.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions