linux/drivers/platform/x86/intel/pmt
Thomas Weißschuh 94a20fb9af sysfs: treewide: constify attribute callback of bin_attribute::mmap()
The mmap() callbacks should not modify the struct
bin_attribute passed as argument.
Enforce this by marking the argument as const.

As there are not many callback implementers perform this change
throughout the tree at once.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com> # ocxl
Acked-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20241103-sysfs-const-bin_attr-v2-6-71110628844c@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-05 14:00:28 +01:00
..
Kconfig platform/x86/intel: Move intel_pmt from MFD to Auxiliary Bus 2021-12-22 13:56:19 +01:00
Makefile
class.c sysfs: treewide: constify attribute callback of bin_attribute::mmap() 2024-11-05 14:00:28 +01:00
class.h platform/x86/intel/pmt: Use PMT callbacks 2024-08-12 16:21:31 +02:00
crashlog.c platform/x86/intel/vsec.h: Move to include/linux 2024-08-12 16:21:31 +02:00
telemetry.c platform/x86/intel/pmt: Use PMT callbacks 2024-08-12 16:21:31 +02:00
telemetry.h platform/x86/intel/pmt: telemetry: Export API to read telemetry 2023-12-04 14:53:43 +01:00