aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/ir-raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/rc/ir-raw.c')
-rw-r--r--drivers/media/rc/ir-raw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/rc/ir-raw.c b/drivers/media/rc/ir-raw.c
index 763c9d131d0f..c08718e17671 100644
--- a/drivers/media/rc/ir-raw.c
+++ b/drivers/media/rc/ir-raw.c
@@ -240,6 +240,12 @@ ir_raw_get_allowed_protocols(void)
240 return protocols; 240 return protocols;
241} 241}
242 242
243static int change_protocol(struct rc_dev *dev, u64 *rc_type)
244{
245 /* the caller will update dev->enabled_protocols */
246 return 0;
247}
248
243/* 249/*
244 * Used to (un)register raw event clients 250 * Used to (un)register raw event clients
245 */ 251 */
@@ -257,6 +263,7 @@ int ir_raw_event_register(struct rc_dev *dev)
257 263
258 dev->raw->dev = dev; 264 dev->raw->dev = dev;
259 rc_set_enabled_protocols(dev, ~0); 265 rc_set_enabled_protocols(dev, ~0);
266 dev->change_protocol = change_protocol;
260 rc = kfifo_alloc(&dev->raw->kfifo, 267 rc = kfifo_alloc(&dev->raw->kfifo,
261 sizeof(struct ir_raw_event) * MAX_IR_EVENT_SIZE, 268 sizeof(struct ir_raw_event) * MAX_IR_EVENT_SIZE,
262 GFP_KERNEL); 269 GFP_KERNEL);