linux-next/drivers/hwmon/occ
Thomas Weißschuh 0f049da5b0 hwmon: (occ/p9_sbe) Constify 'struct bin_attribute'
The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241215-sysfs-const-bin_attr-hwmon-v1-1-ea72a6a46c36@weissschuh.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2024-12-15 22:02:26 -08:00
..
common.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
common.h hwmon: (occ) Prevent power cap command overwriting poll response 2022-06-29 13:59:23 -07:00
Kconfig hwmon: (occ) OCC sensors aren't arch-specific 2022-12-04 16:45:02 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
p8_i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
p9_sbe.c hwmon: (occ/p9_sbe) Constify 'struct bin_attribute' 2024-12-15 22:02:26 -08:00
sysfs.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00