hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-total-media-in-hand.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Total Media In Hand 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,16 +10,16 @@
2310
2411 /* Uses NEC extended 0x02bd */
2512 static struct rc_map_table total_media_in_hand[] = {
26
- { 0x02bd00, KEY_1 },
27
- { 0x02bd01, KEY_2 },
28
- { 0x02bd02, KEY_3 },
29
- { 0x02bd03, KEY_4 },
30
- { 0x02bd04, KEY_5 },
31
- { 0x02bd05, KEY_6 },
32
- { 0x02bd06, KEY_7 },
33
- { 0x02bd07, KEY_8 },
34
- { 0x02bd08, KEY_9 },
35
- { 0x02bd09, KEY_0 },
13
+ { 0x02bd00, KEY_NUMERIC_1 },
14
+ { 0x02bd01, KEY_NUMERIC_2 },
15
+ { 0x02bd02, KEY_NUMERIC_3 },
16
+ { 0x02bd03, KEY_NUMERIC_4 },
17
+ { 0x02bd04, KEY_NUMERIC_5 },
18
+ { 0x02bd05, KEY_NUMERIC_6 },
19
+ { 0x02bd06, KEY_NUMERIC_7 },
20
+ { 0x02bd07, KEY_NUMERIC_8 },
21
+ { 0x02bd08, KEY_NUMERIC_9 },
22
+ { 0x02bd09, KEY_NUMERIC_0 },
3623 { 0x02bd0a, KEY_MUTE },
3724 { 0x02bd0b, KEY_CYCLEWINDOWS }, /* yellow, [min / max] */
3825 { 0x02bd0c, KEY_VIDEO }, /* TV / AV */
....@@ -64,7 +51,7 @@
6451 .map = {
6552 .scan = total_media_in_hand,
6653 .size = ARRAY_SIZE(total_media_in_hand),
67
- .rc_proto = RC_PROTO_NEC,
54
+ .rc_proto = RC_PROTO_NECX,
6855 .name = RC_MAP_TOTAL_MEDIA_IN_HAND,
6956 }
7057 };