summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/siano/smsir.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-17 16:59:01 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-17 16:59:01 -0300
commitfdd1eeb49d36fa79505f96de0f68e8d6768ab0b0 (patch)
treec9bd13d5cfd6ef0701752be40405962f4d1c507e /drivers/media/common/siano/smsir.h
parent2c76a12ae9f5e6e2afc400bfbdd8b326e7d36b2a (diff)
downloadtalos-op-linux-fdd1eeb49d36fa79505f96de0f68e8d6768ab0b0.tar.gz
talos-op-linux-fdd1eeb49d36fa79505f96de0f68e8d6768ab0b0.zip
[media] siano: allow compiling it without RC support
Remote controller support should be optional on all drivers. Make it optional at Siano's driver. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/siano/smsir.h')
-rw-r--r--drivers/media/common/siano/smsir.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/common/siano/smsir.h b/drivers/media/common/siano/smsir.h
index ae92b3a8587e..69b59b9eee28 100644
--- a/drivers/media/common/siano/smsir.h
+++ b/drivers/media/common/siano/smsir.h
@@ -46,10 +46,19 @@ struct ir_t {
u32 controller;
};
+#ifdef CONFIG_SMS_SIANO_RC
int sms_ir_init(struct smscore_device_t *coredev);
void sms_ir_exit(struct smscore_device_t *coredev);
void sms_ir_event(struct smscore_device_t *coredev,
const char *buf, int len);
+#else
+inline static int sms_ir_init(struct smscore_device_t *coredev) {
+ return 0;
+}
+inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
+inline static void sms_ir_event(struct smscore_device_t *coredev,
+ const char *buf, int len) {};
+#endif
#endif /* __SMS_IR_H__ */
OpenPOWER on IntegriCloud