hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-terratec-slim.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * TerraTec 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>
....@@ -24,16 +11,16 @@
2411 /* TerraTec slim remote, 7 rows, 4 columns. */
2512 /* Uses NEC extended 0x02bd. */
2613 static struct rc_map_table terratec_slim[] = {
27
- { 0x02bd00, KEY_1 },
28
- { 0x02bd01, KEY_2 },
29
- { 0x02bd02, KEY_3 },
30
- { 0x02bd03, KEY_4 },
31
- { 0x02bd04, KEY_5 },
32
- { 0x02bd05, KEY_6 },
33
- { 0x02bd06, KEY_7 },
34
- { 0x02bd07, KEY_8 },
35
- { 0x02bd08, KEY_9 },
36
- { 0x02bd09, KEY_0 },
14
+ { 0x02bd00, KEY_NUMERIC_1 },
15
+ { 0x02bd01, KEY_NUMERIC_2 },
16
+ { 0x02bd02, KEY_NUMERIC_3 },
17
+ { 0x02bd03, KEY_NUMERIC_4 },
18
+ { 0x02bd04, KEY_NUMERIC_5 },
19
+ { 0x02bd05, KEY_NUMERIC_6 },
20
+ { 0x02bd06, KEY_NUMERIC_7 },
21
+ { 0x02bd07, KEY_NUMERIC_8 },
22
+ { 0x02bd08, KEY_NUMERIC_9 },
23
+ { 0x02bd09, KEY_NUMERIC_0 },
3724 { 0x02bd0a, KEY_MUTE },
3825 { 0x02bd0b, KEY_NEW }, /* symbol: PIP */
3926 { 0x02bd0e, KEY_VOLUMEDOWN },
....@@ -58,7 +45,7 @@
5845 .map = {
5946 .scan = terratec_slim,
6047 .size = ARRAY_SIZE(terratec_slim),
61
- .rc_proto = RC_PROTO_NEC,
48
+ .rc_proto = RC_PROTO_NECX,
6249 .name = RC_MAP_TERRATEC_SLIM,
6350 }
6451 };