summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
diff options
context:
space:
mode:
authorAntti Palosaari2012-12-10 00:46:46 +0100
committerMauro Carvalho Chehab2013-01-06 13:19:55 +0100
commitef3824029d0f5887c065ea461157bdf8b2287bf8 (patch)
tree91a2b311330b1fbb8a73ded3480b3c6c36c53a71 /drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
parent[media] dvb_usb_v2: remove rc-core stub implementations (diff)
downloadkernel-qcow2-linux-ef3824029d0f5887c065ea461157bdf8b2287bf8.tar.gz
kernel-qcow2-linux-ef3824029d0f5887c065ea461157bdf8b2287bf8.tar.xz
kernel-qcow2-linux-ef3824029d0f5887c065ea461157bdf8b2287bf8.zip
[media] dvb_usb_v2: use dummy function defines instead stub functions
I think it is better (cheaper) to use dummy defines for functions that has no meaning when remote controller is disabled by Kconfig. 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_core.c')
-rw-r--r--drivers/media/usb/dvb-usb-v2/dvb_usb_core.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
index 94f134c4e942..1330c644dd8d 100644
--- a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
+++ b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
@@ -204,15 +204,8 @@ static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
return 0;
}
#else
-static int dvb_usbv2_remote_init(struct dvb_usb_device *d)
-{
- return 0;
-}
-
-static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
-{
- return 0;
-}
+ #define dvb_usbv2_remote_init(args...) 0
+ #define dvb_usbv2_remote_exit(args...)
#endif
static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf,