linux-stable/drivers/thermal/intel/int340x_thermal
Lukas Wunner 66bc1a1733 treewide: Use sysfs_bin_attr_simple_read() helper
Deduplicate ->read() callbacks of bin_attributes which are backed by a
simple buffer in memory:

Use the newly introduced sysfs_bin_attr_simple_read() helper instead,
either by referencing it directly or by declaring such bin_attributes
with BIN_ATTR_SIMPLE_RO() or BIN_ATTR_SIMPLE_ADMIN_RO().

Aside from a reduction of LoC, this shaves off a few bytes from vmlinux
(304 bytes on an x86_64 allyesconfig).

No functional change intended.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Zhi Wang <zhiwang@kernel.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/92ee0a0e83a5a3f3474845db6c8575297698933a.1712410202.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-11 16:02:25 +02:00
..
acpi_thermal_rel.c thermal: intel: int340x_thermal: New IOCTLs for Passive v2 table 2023-06-13 17:57:39 +02:00
acpi_thermal_rel.h thermal: intel: int340x_thermal: New IOCTLs for Passive v2 table 2023-06-13 17:57:39 +02:00
int340x_thermal_zone.c thermal: intel: int340x_thermal: Use thermal zone accessor functions 2024-03-05 21:38:22 +01:00
int340x_thermal_zone.h thermal: intel: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01:00
int3400_thermal.c treewide: Use sysfs_bin_attr_simple_read() helper 2024-04-11 16:02:25 +02:00
int3401_thermal.c thermal: int3401: Convert to platform remove callback returning void 2023-09-29 12:34:16 +02:00
int3402_thermal.c thermal: int3402: Convert to platform remove callback returning void 2023-09-29 12:34:16 +02:00
int3403_thermal.c thermal: int3403: Convert to platform remove callback returning void 2023-09-29 12:34:17 +02:00
int3406_thermal.c thermal: int3406: Convert to platform remove callback returning void 2023-09-29 12:34:17 +02:00
Kconfig thermal: ACPI: Move the ACPI thermal library to drivers/acpi/ 2023-11-21 15:04:08 +01:00
Makefile thermal: int340x: processor_thermal: Support power floor notifications 2023-10-12 21:09:48 +02:00
processor_thermal_device_pci_legacy.c thermal: int340x: processor_thermal: Move mailbox code to common module 2023-09-14 21:52:19 +02:00
processor_thermal_device_pci.c Merge thermal core changes for 6.9 to satisfy a dependency. 2024-03-05 21:37:49 +01:00
processor_thermal_device.c thermal/intel: Fix intel_tcc_get_temp() to support negative CPU temperature 2024-02-12 18:41:38 +01:00
processor_thermal_device.h thermal: int340x: processor_thermal: Add Lunar Lake-M PCI ID 2024-02-28 20:46:51 +01:00
processor_thermal_mbox.c thermal: int340x: processor_thermal: Add interrupt configuration function 2023-09-14 21:52:19 +02:00
processor_thermal_power_floor.c thermal: int340x: processor_thermal: Support power floor notifications 2023-10-12 21:09:48 +02:00
processor_thermal_rapl.c powercap: intel_rapl: Fix locking in TPMI RAPL 2024-02-13 17:31:48 +01:00
processor_thermal_rfim.c thermal: intel: int340x: Add DLVR support for RFIM control 2023-04-18 15:24:40 +02:00
processor_thermal_wt_hint.c thermal: int340x: processor_thermal: Common function to clear SOC interrupt 2023-10-12 21:09:48 +02:00
processor_thermal_wt_req.c thermal: int340x: processor_thermal: Move mailbox code to common module 2023-09-14 21:52:19 +02:00