diff options
| author | Lukas Wunner <[email protected]> | 2024-04-20 20:00:05 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-05-04 15:37:03 +0000 |
| commit | 3182459b7bff642eb968d6203a08aea3862436c1 (patch) | |
| tree | fb910224e2486bc672a8c5929787db7b8b4768cd /net/unix/af_unix.c | |
| parent | perf: Use device_show_string() helper for sysfs attributes (diff) | |
| download | kernel-3182459b7bff642eb968d6203a08aea3862436c1.tar.gz kernel-3182459b7bff642eb968d6203a08aea3862436c1.zip | |
platform/x86: 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 <[email protected]>
Acked-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/3ae8c9a73fbb291c1c863777af175c657a2a10e9.1713608122.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
