HID: roccat: pyro: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:01:41 +0000 (20:01 +0100)
committerJiri Kosina <jkosina@suse.com>
Wed, 11 Dec 2024 14:11:09 +0000 (15:11 +0100)
commit1b1d865715e0eda52e62226261651e97673773d6
tree53807027c16ec8937b7f27bbc78243bb107ad315
parentcdc6829c2cf086ce76007b17173079a78997539e
HID: roccat: pyro: 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-pyra.c