diff options
author | Antti Palosaari <crope@iki.fi> | 2012-11-28 22:05:35 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-06 07:15:07 -0500 |
commit | 0c87c66aa383b045c437e7cf456eef28a8aa7b66 (patch) | |
tree | 03be03c9d8d730e2ec3bc81c8cbc00fe0fc0aea8 /drivers/media/usb/dvb-usb-v2/dvb_usb.h | |
parent | 24b9f50170f55a3179c6f6d51022eb7d50502d05 (diff) |
[media] dvb_usb_v2: make remote controller optional
Make it possible to compile dvb_usb_v2 driver without the remote
controller (RC-core).
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/dvb_usb.h')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/dvb_usb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb.h b/drivers/media/usb/dvb-usb-v2/dvb_usb.h index 059291b892b8..e2678a78db4c 100644 --- a/drivers/media/usb/dvb-usb-v2/dvb_usb.h +++ b/drivers/media/usb/dvb-usb-v2/dvb_usb.h | |||
@@ -400,4 +400,13 @@ extern int dvb_usbv2_reset_resume(struct usb_interface *); | |||
400 | extern int dvb_usbv2_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16); | 400 | extern int dvb_usbv2_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16); |
401 | extern int dvb_usbv2_generic_write(struct dvb_usb_device *, u8 *, u16); | 401 | extern int dvb_usbv2_generic_write(struct dvb_usb_device *, u8 *, u16); |
402 | 402 | ||
403 | /* stub implementations that will be never called when RC-core is disabled */ | ||
404 | #if !defined(CONFIG_RC_CORE) && !defined(CONFIG_RC_CORE_MODULE) | ||
405 | #define rc_repeat(args...) | ||
406 | #define rc_keydown(args...) | ||
407 | #define rc_keydown_notimeout(args...) | ||
408 | #define rc_keyup(args...) | ||
409 | #define rc_g_keycode_from_table(args...) 0 | ||
410 | #endif | ||
411 | |||
403 | #endif | 412 | #endif |