diff options
Diffstat (limited to 'drivers/media/IR/rc-map.c')
-rw-r--r-- | drivers/media/IR/rc-map.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/media/IR/rc-map.c b/drivers/media/IR/rc-map.c index 46a8f1524b5b..689143f2fff0 100644 --- a/drivers/media/IR/rc-map.c +++ b/drivers/media/IR/rc-map.c | |||
@@ -82,3 +82,26 @@ void ir_unregister_map(struct rc_keymap *map) | |||
82 | } | 82 | } |
83 | EXPORT_SYMBOL_GPL(ir_unregister_map); | 83 | EXPORT_SYMBOL_GPL(ir_unregister_map); |
84 | 84 | ||
85 | |||
86 | static struct ir_scancode empty[] = { | ||
87 | { 0x2a, KEY_COFFEE }, | ||
88 | }; | ||
89 | |||
90 | static struct rc_keymap empty_map = { | ||
91 | .map = { | ||
92 | .scan = empty, | ||
93 | .size = ARRAY_SIZE(empty), | ||
94 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ | ||
95 | .name = RC_MAP_EMPTY, | ||
96 | } | ||
97 | }; | ||
98 | |||
99 | int ir_rcmap_init(void) | ||
100 | { | ||
101 | return ir_register_map(&empty_map); | ||
102 | } | ||
103 | |||
104 | void ir_rcmap_cleanup(void) | ||
105 | { | ||
106 | ir_unregister_map(&empty_map); | ||
107 | } | ||