]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: roccat: lua: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:01:40 +0000 (20:01 +0100)
committerJiri Kosina <jkosina@suse.com>
Wed, 11 Dec 2024 14:11:04 +0000 (15:11 +0100)
commitcdc6829c2cf086ce76007b17173079a78997539e
treeab40fec6c590d377bb5d0b1cb00a09fd5cfbf709
parent79ef5c3598fd3163b71273547b73f1450bc632ab
HID: roccat: lua: 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: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-roccat-lua.c