1 // SPDX-License-Identifier: GPL-2.0+
2 // kaiomy.h - Keytable for kaiomy Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
12 Mauro Carvalho Chehab <mchehab@infradead.org>
15 static struct rc_map_table kaiomy
[] = {
35 { 0x09, KEY_CHANNELUP
},
36 { 0x07, KEY_CHANNELDOWN
},
38 { 0x0e, KEY_VOLUMEUP
},
39 { 0x13, KEY_VOLUMEDOWN
},
60 static struct rc_map_list kaiomy_map
= {
63 .size
= ARRAY_SIZE(kaiomy
),
64 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
65 .name
= RC_MAP_KAIOMY
,
69 static int __init
init_rc_map_kaiomy(void)
71 return rc_map_register(&kaiomy_map
);
74 static void __exit
exit_rc_map_kaiomy(void)
76 rc_map_unregister(&kaiomy_map
);
79 module_init(init_rc_map_kaiomy
)
80 module_exit(exit_rc_map_kaiomy
)
82 MODULE_LICENSE("GPL");
83 MODULE_AUTHOR("Mauro Carvalho Chehab");