diff options
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/ir-functions.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/media/common/ir-functions.c b/drivers/media/common/ir-functions.c index 29885c2893d2..b31bd27da374 100644 --- a/drivers/media/common/ir-functions.c +++ b/drivers/media/common/ir-functions.c | |||
@@ -54,11 +54,13 @@ static void ir_input_key_event(struct input_dev *dev, struct ir_input_state *ir) | |||
54 | 54 | ||
55 | /* -------------------------------------------------------------------------- */ | 55 | /* -------------------------------------------------------------------------- */ |
56 | 56 | ||
57 | void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | 57 | int ir_input_init(struct input_dev *dev, struct ir_input_state *ir, |
58 | int ir_type, struct ir_scancode_table *ir_codes) | 58 | int ir_type, struct ir_scancode_table *ir_codes) |
59 | { | 59 | { |
60 | ir->ir_type = ir_type; | 60 | ir->ir_type = ir_type; |
61 | 61 | ||
62 | /* FIXME: Add the proper code to dynamically allocate IR table */ | ||
63 | |||
62 | ir_set_keycode_table(dev, ir_codes); | 64 | ir_set_keycode_table(dev, ir_codes); |
63 | 65 | ||
64 | clear_bit(0, dev->keybit); | 66 | clear_bit(0, dev->keybit); |
@@ -66,9 +68,17 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | |||
66 | set_bit(EV_KEY, dev->evbit); | 68 | set_bit(EV_KEY, dev->evbit); |
67 | if (repeat) | 69 | if (repeat) |
68 | set_bit(EV_REP, dev->evbit); | 70 | set_bit(EV_REP, dev->evbit); |
71 | |||
72 | return 0; | ||
69 | } | 73 | } |
70 | EXPORT_SYMBOL_GPL(ir_input_init); | 74 | EXPORT_SYMBOL_GPL(ir_input_init); |
71 | 75 | ||
76 | void ir_input_free(struct input_dev *input_dev) | ||
77 | { | ||
78 | /* FIXME: Add the proper code to free allocated resources */ | ||
79 | } | ||
80 | EXPORT_SYMBOL_GPL(ir_input_free); | ||
81 | |||
72 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir) | 82 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir) |
73 | { | 83 | { |
74 | if (ir->keypressed) { | 84 | if (ir->keypressed) { |