LCOV - code coverage report
Current view: top level - drivers/media/rc/keymaps - rc-dtt200u.c (source / functions) Hit Total Coverage
Test: Real Lines: 2 5 40.0 %
Date: 2020-10-17 15:46:16 Functions: 0 2 0.0 %
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       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                 :          3 : static int __init init_rc_map_dtt200u(void)
      42                 :            : {
      43                 :          3 :         return rc_map_register(&dtt200u_map);
      44                 :            : }
      45                 :            : 
      46                 :          0 : static void __exit exit_rc_map_dtt200u(void)
      47                 :            : {
      48                 :          0 :         rc_map_unregister(&dtt200u_map);
      49                 :          0 : }
      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>");
    

Generated by: LCOV version 1.14