gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-avertv-303.c
bloba3e2e945c769ee65e0526296b9b01eabdfb1d4c2
1 // SPDX-License-Identifier: GPL-2.0+
2 // avertv-303.h - Keytable for avertv_303 Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* AVERTV STUDIO 303 Remote */
13 static struct rc_map_table avertv_303[] = {
14 { 0x2a, KEY_NUMERIC_1 },
15 { 0x32, KEY_NUMERIC_2 },
16 { 0x3a, KEY_NUMERIC_3 },
17 { 0x4a, KEY_NUMERIC_4 },
18 { 0x52, KEY_NUMERIC_5 },
19 { 0x5a, KEY_NUMERIC_6 },
20 { 0x6a, KEY_NUMERIC_7 },
21 { 0x72, KEY_NUMERIC_8 },
22 { 0x7a, KEY_NUMERIC_9 },
23 { 0x0e, KEY_NUMERIC_0 },
25 { 0x02, KEY_POWER },
26 { 0x22, KEY_VIDEO },
27 { 0x42, KEY_AUDIO },
28 { 0x62, KEY_ZOOM },
29 { 0x0a, KEY_TV },
30 { 0x12, KEY_CD },
31 { 0x1a, KEY_TEXT },
33 { 0x16, KEY_SUBTITLE },
34 { 0x1e, KEY_REWIND },
35 { 0x06, KEY_PRINT },
37 { 0x2e, KEY_SEARCH },
38 { 0x36, KEY_SLEEP },
39 { 0x3e, KEY_SHUFFLE },
40 { 0x26, KEY_MUTE },
42 { 0x4e, KEY_RECORD },
43 { 0x56, KEY_PAUSE },
44 { 0x5e, KEY_STOP },
45 { 0x46, KEY_PLAY },
47 { 0x6e, KEY_RED },
48 { 0x0b, KEY_GREEN },
49 { 0x66, KEY_YELLOW },
50 { 0x03, KEY_BLUE },
52 { 0x76, KEY_LEFT },
53 { 0x7e, KEY_RIGHT },
54 { 0x13, KEY_DOWN },
55 { 0x1b, KEY_UP },
58 static struct rc_map_list avertv_303_map = {
59 .map = {
60 .scan = avertv_303,
61 .size = ARRAY_SIZE(avertv_303),
62 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_AVERTV_303,
67 static int __init init_rc_map_avertv_303(void)
69 return rc_map_register(&avertv_303_map);
72 static void __exit exit_rc_map_avertv_303(void)
74 rc_map_unregister(&avertv_303_map);
77 module_init(init_rc_map_avertv_303)
78 module_exit(exit_rc_map_avertv_303)
80 MODULE_LICENSE("GPL");
81 MODULE_AUTHOR("Mauro Carvalho Chehab");