.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * HID driver for the Prodikeys PC-MIDI Keyboard |
---|
3 | 4 | * providing midi & extra multimedia keys functionality |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Controls for Octave Shift Up/Down, Channel, and |
---|
8 | 9 | * Sustain Duration available via sysfs. |
---|
9 | | - * |
---|
10 | 10 | */ |
---|
11 | 11 | |
---|
12 | 12 | /* |
---|
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. |
---|
17 | 13 | */ |
---|
18 | 14 | |
---|
19 | 15 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
520 | 516 | MY PICTURES => KEY_WORDPROCESSOR |
---|
521 | 517 | MY MUSIC=> KEY_SPREADSHEET |
---|
522 | 518 | */ |
---|
523 | | - unsigned int keys[] = { |
---|
| 519 | + static const unsigned int keys[] = { |
---|
524 | 520 | KEY_FN, |
---|
525 | 521 | KEY_MESSENGER, KEY_CALENDAR, |
---|
526 | 522 | KEY_ADDRESSBOOK, KEY_DOCUMENTS, |
---|
.. | .. |
---|
536 | 532 | 0 |
---|
537 | 533 | }; |
---|
538 | 534 | |
---|
539 | | - unsigned int *pkeys = &keys[0]; |
---|
| 535 | + const unsigned int *pkeys = &keys[0]; |
---|
540 | 536 | unsigned short i; |
---|
541 | 537 | |
---|
542 | 538 | if (pm->ifnum != 1) /* only set up ONCE for interace 1 */ |
---|