]> www.infradead.org Git - users/dwmw2/linux.git/commit
i2c: slave-eeprom: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 15 Dec 2024 13:21:39 +0000 (14:21 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 9 Jan 2025 09:48:44 +0000 (10:48 +0100)
commit7fd9d28d1a6b1bab4559e472e3d552b5c77e08bb
treef46df42f4e5ee51b86600e7d5aae2a43c8e1a5e0
parent3cfe39b3a845593a485ab1c716615979004ef9f6
i2c: slave-eeprom: 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>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/i2c-slave-eeprom.c