hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-digittrade.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Digittrade DVB-T USB Stick 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>
....@@ -27,11 +14,11 @@
2714
2815 /* Digittrade DVB-T USB Stick */
2916 static struct rc_map_table digittrade[] = {
30
- { 0x0000, KEY_9 },
17
+ { 0x0000, KEY_NUMERIC_9 },
3118 { 0x0001, KEY_EPG }, /* EPG */
3219 { 0x0002, KEY_VOLUMEDOWN }, /* Vol Dn */
3320 { 0x0003, KEY_TEXT }, /* TELETEXT */
34
- { 0x0004, KEY_8 },
21
+ { 0x0004, KEY_NUMERIC_8 },
3522 { 0x0005, KEY_MUTE }, /* MUTE */
3623 { 0x0006, KEY_POWER2 }, /* POWER */
3724 { 0x0009, KEY_ZOOM }, /* FULLSCREEN */
....@@ -39,22 +26,22 @@
3926 { 0x000d, KEY_SUBTITLE }, /* SUBTITLE */
4027 { 0x000e, KEY_STOP }, /* STOP */
4128 { 0x0010, KEY_OK }, /* RETURN */
42
- { 0x0011, KEY_2 },
43
- { 0x0012, KEY_4 },
44
- { 0x0015, KEY_3 },
45
- { 0x0016, KEY_5 },
29
+ { 0x0011, KEY_NUMERIC_2 },
30
+ { 0x0012, KEY_NUMERIC_4 },
31
+ { 0x0015, KEY_NUMERIC_3 },
32
+ { 0x0016, KEY_NUMERIC_5 },
4633 { 0x0017, KEY_CHANNELDOWN }, /* Ch Dn */
4734 { 0x0019, KEY_CHANNELUP }, /* CH Up */
4835 { 0x001a, KEY_PAUSE }, /* PAUSE */
49
- { 0x001b, KEY_1 },
36
+ { 0x001b, KEY_NUMERIC_1 },
5037 { 0x001d, KEY_AUDIO }, /* DUAL SOUND */
5138 { 0x001e, KEY_PLAY }, /* PLAY */
5239 { 0x001f, KEY_CAMERA }, /* SNAPSHOT */
5340 { 0x0040, KEY_VOLUMEUP }, /* Vol Up */
54
- { 0x0048, KEY_7 },
55
- { 0x004c, KEY_6 },
41
+ { 0x0048, KEY_NUMERIC_7 },
42
+ { 0x004c, KEY_NUMERIC_6 },
5643 { 0x004d, KEY_PLAYPAUSE }, /* TIMESHIFT */
57
- { 0x0054, KEY_0 },
44
+ { 0x0054, KEY_NUMERIC_0 },
5845 };
5946
6047 static struct rc_map_list digittrade_map = {