hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * TwinHan AzureWave AD-TU700(704J) 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>
....@@ -23,18 +10,18 @@
2310
2411 static struct rc_map_table azurewave_ad_tu700[] = {
2512 { 0x0000, KEY_TAB }, /* Tab */
26
- { 0x0001, KEY_2 },
13
+ { 0x0001, KEY_NUMERIC_2 },
2714 { 0x0002, KEY_CHANNELDOWN },
28
- { 0x0003, KEY_1 },
15
+ { 0x0003, KEY_NUMERIC_1 },
2916 { 0x0004, KEY_MENU }, /* Record List */
3017 { 0x0005, KEY_CHANNELUP },
31
- { 0x0006, KEY_3 },
18
+ { 0x0006, KEY_NUMERIC_3 },
3219 { 0x0007, KEY_SLEEP }, /* Hibernate */
3320 { 0x0008, KEY_VIDEO }, /* A/V */
34
- { 0x0009, KEY_4 },
21
+ { 0x0009, KEY_NUMERIC_4 },
3522 { 0x000a, KEY_VOLUMEDOWN },
3623 { 0x000c, KEY_CANCEL }, /* Cancel */
37
- { 0x000d, KEY_7 },
24
+ { 0x000d, KEY_NUMERIC_7 },
3825 { 0x000e, KEY_AGAIN }, /* Recall */
3926 { 0x000f, KEY_TEXT }, /* Teletext */
4027 { 0x0010, KEY_MUTE },
....@@ -42,17 +29,17 @@
4229 { 0x0012, KEY_FASTFORWARD }, /* FF >> */
4330 { 0x0013, KEY_BACK }, /* Back */
4431 { 0x0014, KEY_PLAY },
45
- { 0x0015, KEY_0 },
32
+ { 0x0015, KEY_NUMERIC_0 },
4633 { 0x0016, KEY_POWER2 }, /* [red power button] */
4734 { 0x0017, KEY_FAVORITES }, /* Favorite List */
4835 { 0x0018, KEY_RED },
49
- { 0x0019, KEY_8 },
36
+ { 0x0019, KEY_NUMERIC_8 },
5037 { 0x001a, KEY_STOP },
51
- { 0x001b, KEY_9 },
38
+ { 0x001b, KEY_NUMERIC_9 },
5239 { 0x001c, KEY_EPG }, /* Info/EPG */
53
- { 0x001d, KEY_5 },
40
+ { 0x001d, KEY_NUMERIC_5 },
5441 { 0x001e, KEY_VOLUMEUP },
55
- { 0x001f, KEY_6 },
42
+ { 0x001f, KEY_NUMERIC_6 },
5643 { 0x0040, KEY_REWIND }, /* FR << */
5744 { 0x0041, KEY_PREVIOUS }, /* Replay */
5845 { 0x0042, KEY_NEXT }, /* Skip */