summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-core-priv.h
diff options
context:
space:
mode:
authorDavid Härdeman2017-05-03 12:04:00 +0200
committerMauro Carvalho Chehab2017-06-13 18:53:50 +0200
commitf56928abaa6d73613d21f0cdcb7fd0b7f339b5bd (patch)
tree00687fb28a2795fa2cb13e49d7c96893bf90c54e /drivers/media/rc/rc-core-priv.h
parent[media] sir_ir: annotate hardware config module parameters (diff)
downloadkernel-qcow2-linux-f56928abaa6d73613d21f0cdcb7fd0b7f339b5bd.tar.gz
kernel-qcow2-linux-f56928abaa6d73613d21f0cdcb7fd0b7f339b5bd.tar.xz
kernel-qcow2-linux-f56928abaa6d73613d21f0cdcb7fd0b7f339b5bd.zip
[media] rc-core: cleanup rc_register_device
The device core infrastructure is based on the presumption that once a driver calls device_add(), it must be ready to accept userspace interaction. This requires splitting rc_setup_rx_device() into two functions and reorganizing rc_register_device() so that as much work as possible is performed before calling device_add(). Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/rc-core-priv.h')
-rw-r--r--drivers/media/rc/rc-core-priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h
index 0455b273c2fc..b3e7cac2c3ee 100644
--- a/drivers/media/rc/rc-core-priv.h
+++ b/drivers/media/rc/rc-core-priv.h
@@ -263,7 +263,9 @@ int ir_raw_gen_pl(struct ir_raw_event **ev, unsigned int max,
* Routines from rc-raw.c to be used internally and by decoders
*/
u64 ir_raw_get_allowed_protocols(void);
+int ir_raw_event_prepare(struct rc_dev *dev);
int ir_raw_event_register(struct rc_dev *dev);
+void ir_raw_event_free(struct rc_dev *dev);
void ir_raw_event_unregister(struct rc_dev *dev);
int ir_raw_handler_register(struct ir_raw_handler *ir_raw_handler);
void ir_raw_handler_unregister(struct ir_raw_handler *ir_raw_handler);