WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-msi-digivox-ii.c
blobab001d2dac67d87122cfc36f772b4cdd152ce170
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * MSI DIGIVOX mini II remote controller keytable
5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
6 */
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table msi_digivox_ii[] = {
12 { 0x0302, KEY_NUMERIC_2 },
13 { 0x0303, KEY_UP }, /* up */
14 { 0x0304, KEY_NUMERIC_3 },
15 { 0x0305, KEY_CHANNELDOWN },
16 { 0x0308, KEY_NUMERIC_5 },
17 { 0x0309, KEY_NUMERIC_0 },
18 { 0x030b, KEY_NUMERIC_8 },
19 { 0x030d, KEY_DOWN }, /* down */
20 { 0x0310, KEY_NUMERIC_9 },
21 { 0x0311, KEY_NUMERIC_7 },
22 { 0x0314, KEY_VOLUMEUP },
23 { 0x0315, KEY_CHANNELUP },
24 { 0x0316, KEY_OK },
25 { 0x0317, KEY_POWER2 },
26 { 0x031a, KEY_NUMERIC_1 },
27 { 0x031c, KEY_NUMERIC_4 },
28 { 0x031d, KEY_NUMERIC_6 },
29 { 0x031f, KEY_VOLUMEDOWN },
32 static struct rc_map_list msi_digivox_ii_map = {
33 .map = {
34 .scan = msi_digivox_ii,
35 .size = ARRAY_SIZE(msi_digivox_ii),
36 .rc_proto = RC_PROTO_NEC,
37 .name = RC_MAP_MSI_DIGIVOX_II,
41 static int __init init_rc_map_msi_digivox_ii(void)
43 return rc_map_register(&msi_digivox_ii_map);
46 static void __exit exit_rc_map_msi_digivox_ii(void)
48 rc_map_unregister(&msi_digivox_ii_map);
51 module_init(init_rc_map_msi_digivox_ii)
52 module_exit(exit_rc_map_msi_digivox_ii)
54 MODULE_LICENSE("GPL");
55 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");