hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-zx-irdec.c
....@@ -1,26 +1,23 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2017 Sanechips Technology Co., Ltd.
34 * Copyright 2017 Linaro Ltd.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #include <linux/module.h>
118 #include <media/rc-map.h>
129
1310 static struct rc_map_table zx_irdec_table[] = {
14
- { 0x01, KEY_1 },
15
- { 0x02, KEY_2 },
16
- { 0x03, KEY_3 },
17
- { 0x04, KEY_4 },
18
- { 0x05, KEY_5 },
19
- { 0x06, KEY_6 },
20
- { 0x07, KEY_7 },
21
- { 0x08, KEY_8 },
22
- { 0x09, KEY_9 },
23
- { 0x31, KEY_0 },
11
+ { 0x01, KEY_NUMERIC_1 },
12
+ { 0x02, KEY_NUMERIC_2 },
13
+ { 0x03, KEY_NUMERIC_3 },
14
+ { 0x04, KEY_NUMERIC_4 },
15
+ { 0x05, KEY_NUMERIC_5 },
16
+ { 0x06, KEY_NUMERIC_6 },
17
+ { 0x07, KEY_NUMERIC_7 },
18
+ { 0x08, KEY_NUMERIC_8 },
19
+ { 0x09, KEY_NUMERIC_9 },
20
+ { 0x31, KEY_NUMERIC_0 },
2421 { 0x16, KEY_DELETE },
2522 { 0x0a, KEY_MODE }, /* Input method */
2623 { 0x0c, KEY_VOLUMEUP },