treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-pinnacle-color.c
blobb862725635b963768861c6317bb1f13b9c261726
1 // SPDX-License-Identifier: GPL-2.0+
2 // pinnacle-color.h - Keytable for pinnacle_color 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 static struct rc_map_table pinnacle_color[] = {
12 { 0x59, KEY_MUTE },
13 { 0x4a, KEY_POWER },
15 { 0x18, KEY_TEXT },
16 { 0x26, KEY_TV },
17 { 0x3d, KEY_PRINT },
19 { 0x48, KEY_RED },
20 { 0x04, KEY_GREEN },
21 { 0x11, KEY_YELLOW },
22 { 0x00, KEY_BLUE },
24 { 0x2d, KEY_VOLUMEUP },
25 { 0x1e, KEY_VOLUMEDOWN },
27 { 0x49, KEY_MENU },
29 { 0x16, KEY_CHANNELUP },
30 { 0x17, KEY_CHANNELDOWN },
32 { 0x20, KEY_UP },
33 { 0x21, KEY_DOWN },
34 { 0x22, KEY_LEFT },
35 { 0x23, KEY_RIGHT },
36 { 0x0d, KEY_SELECT },
38 { 0x08, KEY_BACK },
39 { 0x07, KEY_REFRESH },
41 { 0x2f, KEY_ZOOM },
42 { 0x29, KEY_RECORD },
44 { 0x4b, KEY_PAUSE },
45 { 0x4d, KEY_REWIND },
46 { 0x2e, KEY_PLAY },
47 { 0x4e, KEY_FORWARD },
48 { 0x53, KEY_PREVIOUS },
49 { 0x4c, KEY_STOP },
50 { 0x54, KEY_NEXT },
52 { 0x69, KEY_NUMERIC_0 },
53 { 0x6a, KEY_NUMERIC_1 },
54 { 0x6b, KEY_NUMERIC_2 },
55 { 0x6c, KEY_NUMERIC_3 },
56 { 0x6d, KEY_NUMERIC_4 },
57 { 0x6e, KEY_NUMERIC_5 },
58 { 0x6f, KEY_NUMERIC_6 },
59 { 0x70, KEY_NUMERIC_7 },
60 { 0x71, KEY_NUMERIC_8 },
61 { 0x72, KEY_NUMERIC_9 },
63 { 0x74, KEY_CHANNEL },
64 { 0x0a, KEY_BACKSPACE },
67 static struct rc_map_list pinnacle_color_map = {
68 .map = {
69 .scan = pinnacle_color,
70 .size = ARRAY_SIZE(pinnacle_color),
71 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
72 .name = RC_MAP_PINNACLE_COLOR,
76 static int __init init_rc_map_pinnacle_color(void)
78 return rc_map_register(&pinnacle_color_map);
81 static void __exit exit_rc_map_pinnacle_color(void)
83 rc_map_unregister(&pinnacle_color_map);
86 module_init(init_rc_map_pinnacle_color)
87 module_exit(exit_rc_map_pinnacle_color)
89 MODULE_LICENSE("GPL");
90 MODULE_AUTHOR("Mauro Carvalho Chehab");