root/drivers/media/rc/keymaps/rc-msi-digivox-ii.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_msi_digivox_ii
  2. exit_rc_map_msi_digivox_ii

   1 // SPDX-License-Identifier: GPL-2.0-or-later
   2 /*
   3  * MSI DIGIVOX mini II remote controller keytable
   4  *
   5  * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
   6  */
   7 
   8 #include <media/rc-map.h>
   9 #include <linux/module.h>
  10 
  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 },
  30 };
  31 
  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,
  38         }
  39 };
  40 
  41 static int __init init_rc_map_msi_digivox_ii(void)
  42 {
  43         return rc_map_register(&msi_digivox_ii_map);
  44 }
  45 
  46 static void __exit exit_rc_map_msi_digivox_ii(void)
  47 {
  48         rc_map_unregister(&msi_digivox_ii_map);
  49 }
  50 
  51 module_init(init_rc_map_msi_digivox_ii)
  52 module_exit(exit_rc_map_msi_digivox_ii)
  53 
  54 MODULE_LICENSE("GPL");
  55 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");

/* [<][>][^][v][top][bottom][index][help] */