hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-medion-x10-digitainer.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Medion X10 RF remote keytable (Digitainer variant)
34 *
....@@ -7,20 +8,6 @@
78 * up/down buttons (tested with P/N 40009936 / 20018268), reportedly
89 * originally shipped with Medion Digitainer but now sold separately simply as
910 * an "X10" remote.
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License along
22
- * with this program; if not, write to the Free Software Foundation, Inc.,
23
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2411 */
2512
2613 #include <linux/module.h>
....@@ -76,16 +63,16 @@
7663 { 0x27, KEY_RECORD },
7764 { 0x26, KEY_FORWARD },
7865
79
- { 0x0d, KEY_1 },
80
- { 0x0e, KEY_2 },
81
- { 0x0f, KEY_3 },
82
- { 0x10, KEY_4 },
83
- { 0x11, KEY_5 },
84
- { 0x12, KEY_6 },
85
- { 0x13, KEY_7 },
86
- { 0x14, KEY_8 },
87
- { 0x15, KEY_9 },
88
- { 0x17, KEY_0 },
66
+ { 0x0d, KEY_NUMERIC_1 },
67
+ { 0x0e, KEY_NUMERIC_2 },
68
+ { 0x0f, KEY_NUMERIC_3 },
69
+ { 0x10, KEY_NUMERIC_4 },
70
+ { 0x11, KEY_NUMERIC_5 },
71
+ { 0x12, KEY_NUMERIC_6 },
72
+ { 0x13, KEY_NUMERIC_7 },
73
+ { 0x14, KEY_NUMERIC_8 },
74
+ { 0x15, KEY_NUMERIC_9 },
75
+ { 0x17, KEY_NUMERIC_0 },
8976
9077 /* these do not actually exist on this remote, but these scancodes
9178 * exist on all other Medion X10 remotes and adding them here allows