summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/ir-raw.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2014-04-03 20:32:16 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-23 22:01:35 -0300
commitda6e162d6a4607362f8478c715c797d84d449f8b (patch)
tree3f0b67c8f226bdbe281180968519645f5316fefd /drivers/media/rc/ir-raw.c
parent0bc56cbef9fb496c79e34c46329f016064d3b0f6 (diff)
downloadblackbird-op-linux-da6e162d6a4607362f8478c715c797d84d449f8b.tar.gz
blackbird-op-linux-da6e162d6a4607362f8478c715c797d84d449f8b.zip
[media] rc-core: simplify sysfs code
Simplify and cleanup the sysfs code a bit. [m.chehab@samsung.com: rebased and fixed a CodingStyle issue] Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
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)
return protocols;
}
+static int change_protocol(struct rc_dev *dev, u64 *rc_type)
+{
+ /* the caller will update dev->enabled_protocols */
+ return 0;
+}
+
/*
* Used to (un)register raw event clients
*/
@@ -257,6 +263,7 @@ int ir_raw_event_register(struct rc_dev *dev)
dev->raw->dev = dev;
rc_set_enabled_protocols(dev, ~0);
+ dev->change_protocol = change_protocol;
rc = kfifo_alloc(&dev->raw->kfifo,
sizeof(struct ir_raw_event) * MAX_IR_EVENT_SIZE,
GFP_KERNEL);
OpenPOWER on IntegriCloud