root/drivers/media/rc/keymaps/rc-dtt200u.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_dtt200u
  2. exit_rc_map_dtt200u

   1 // SPDX-License-Identifier: GPL-2.0-or-later
   2 /* Keytable for Wideview WT-220U.
   3  *
   4  * Copyright (c) 2016 Jonathan McDowell <noodles@earth.li>
   5  */
   6 
   7 #include <media/rc-map.h>
   8 #include <linux/module.h>
   9 
  10 /* key list for the tiny remote control (Yakumo, don't know about the others) */
  11 static struct rc_map_table dtt200u_table[] = {
  12         { 0x8001, KEY_MUTE },
  13         { 0x8002, KEY_CHANNELDOWN },
  14         { 0x8003, KEY_VOLUMEDOWN },
  15         { 0x8004, KEY_NUMERIC_1 },
  16         { 0x8005, KEY_NUMERIC_2 },
  17         { 0x8006, KEY_NUMERIC_3 },
  18         { 0x8007, KEY_NUMERIC_4 },
  19         { 0x8008, KEY_NUMERIC_5 },
  20         { 0x8009, KEY_NUMERIC_6 },
  21         { 0x800a, KEY_NUMERIC_7 },
  22         { 0x800c, KEY_ZOOM },
  23         { 0x800d, KEY_NUMERIC_0 },
  24         { 0x800e, KEY_SELECT },
  25         { 0x8012, KEY_POWER },
  26         { 0x801a, KEY_CHANNELUP },
  27         { 0x801b, KEY_NUMERIC_8 },
  28         { 0x801e, KEY_VOLUMEUP },
  29         { 0x801f, KEY_NUMERIC_9 },
  30 };
  31 
  32 static struct rc_map_list dtt200u_map = {
  33         .map = {
  34                 .scan     = dtt200u_table,
  35                 .size     = ARRAY_SIZE(dtt200u_table),
  36                 .rc_proto = RC_PROTO_NEC,
  37                 .name     = RC_MAP_DTT200U,
  38         }
  39 };
  40 
  41 static int __init init_rc_map_dtt200u(void)
  42 {
  43         return rc_map_register(&dtt200u_map);
  44 }
  45 
  46 static void __exit exit_rc_map_dtt200u(void)
  47 {
  48         rc_map_unregister(&dtt200u_map);
  49 }
  50 
  51 module_init(init_rc_map_dtt200u)
  52 module_exit(exit_rc_map_dtt200u)
  53 
  54 MODULE_LICENSE("GPL");
  55 MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>");

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