]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Constify attribute_groups
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 24 Nov 2020 23:01:09 +0000 (00:01 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 25 Nov 2020 13:17:22 +0000 (14:17 +0100)
commit3ad9a64828de59db1cb595c330a78f7e71bd51c3
tree43a5f77dd5e48a96d60e3f3e21d3cc5cd51618a3
parent16a81f00eda4ac49d452fd46325e2f54e23a8361
HID: wacom: Constify attribute_groups

These are never modified, so make them const to allow the compiler to put
them in read-only memory. It also allows the compiler to shrink the
resulting module with ~900 bytes, test-built with gcc 10.2 on x86_64.

   text    data     bss     dec     hex filename
 204377   42832     576  247785   3c7e9 drivers/hid/wacom_old.ko
 204240   42064     576  246880   3c460 drivers/hid/wacom_new.ko

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c