forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * DigitalNow TinyTwin remote controller keytable
34 *
45 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along
17
- * with this program; if not, write to the Free Software Foundation, Inc.,
18
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
196 */
207
218 #include <media/rc-map.h>
....@@ -25,14 +12,14 @@
2512 { 0x0000, KEY_MUTE }, /* [symbol speaker] */
2613 { 0x0001, KEY_VOLUMEUP },
2714 { 0x0002, KEY_POWER2 }, /* TV [power button] */
28
- { 0x0003, KEY_2 },
29
- { 0x0004, KEY_3 },
30
- { 0x0005, KEY_4 },
31
- { 0x0006, KEY_6 },
32
- { 0x0007, KEY_7 },
33
- { 0x0008, KEY_8 },
15
+ { 0x0003, KEY_NUMERIC_2 },
16
+ { 0x0004, KEY_NUMERIC_3 },
17
+ { 0x0005, KEY_NUMERIC_4 },
18
+ { 0x0006, KEY_NUMERIC_6 },
19
+ { 0x0007, KEY_NUMERIC_7 },
20
+ { 0x0008, KEY_NUMERIC_8 },
3421 { 0x0009, KEY_NUMERIC_STAR }, /* [*] */
35
- { 0x000a, KEY_0 },
22
+ { 0x000a, KEY_NUMERIC_0 },
3623 { 0x000b, KEY_NUMERIC_POUND }, /* [#] */
3724 { 0x000c, KEY_RIGHT }, /* [right arrow] */
3825 { 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */
....@@ -49,10 +36,10 @@
4936 { 0x0019, KEY_BLUE }, /* [blue] MyTV */
5037 { 0x001a, KEY_REWIND }, /* REW [<<] */
5138 { 0x001b, KEY_PLAY }, /* PLAY */
52
- { 0x001c, KEY_5 },
53
- { 0x001d, KEY_9 },
39
+ { 0x001c, KEY_NUMERIC_5 },
40
+ { 0x001d, KEY_NUMERIC_9 },
5441 { 0x001e, KEY_VOLUMEDOWN },
55
- { 0x001f, KEY_1 },
42
+ { 0x001f, KEY_NUMERIC_1 },
5643 { 0x0040, KEY_STOP }, /* STOP */
5744 { 0x0042, KEY_PAUSE }, /* PAUSE */
5845 { 0x0043, KEY_SCREEN }, /* Aspect */