hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/hid/hid-prodikeys.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * HID driver for the Prodikeys PC-MIDI Keyboard
34 * providing midi & extra multimedia keys functionality
....@@ -6,14 +7,9 @@
67 *
78 * Controls for Octave Shift Up/Down, Channel, and
89 * Sustain Duration available via sysfs.
9
- *
1010 */
1111
1212 /*
13
- * This program is free software; you can redistribute it and/or modify it
14
- * under the terms of the GNU General Public License as published by the Free
15
- * Software Foundation; either version 2 of the License, or (at your option)
16
- * any later version.
1713 */
1814
1915 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -520,7 +516,7 @@
520516 MY PICTURES => KEY_WORDPROCESSOR
521517 MY MUSIC=> KEY_SPREADSHEET
522518 */
523
- unsigned int keys[] = {
519
+ static const unsigned int keys[] = {
524520 KEY_FN,
525521 KEY_MESSENGER, KEY_CALENDAR,
526522 KEY_ADDRESSBOOK, KEY_DOCUMENTS,
....@@ -536,7 +532,7 @@
536532 0
537533 };
538534
539
- unsigned int *pkeys = &keys[0];
535
+ const unsigned int *pkeys = &keys[0];
540536 unsigned short i;
541537
542538 if (pm->ifnum != 1) /* only set up ONCE for interace 1 */