From: Shuah Khan Date: Sat, 9 Aug 2014 00:36:18 +0000 (-0300) Subject: [media] au0828: add au0828_rc_*() stubs for VIDEO_AU0828_RC disabled case X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=917cbcde46adf3e155ec61d92f6f29a4eb3acad1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [media] au0828: add au0828_rc_*() stubs for VIDEO_AU0828_RC disabled case Define au0828_rc_*() stubs to avoid compile errors when VIDEO_AU0828_RC is disabled and avoid the need to enclose au0828_rc_*() in ifdef CONFIG_VIDEO_AU0828_RC in .c files. Signed-off-by: Shuah Khan Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/au0828/au0828.h b/drivers/media/usb/au0828/au0828.h index 96bec05d7dac..fd0916e20323 100644 --- a/drivers/media/usb/au0828/au0828.h +++ b/drivers/media/usb/au0828/au0828.h @@ -326,7 +326,14 @@ extern struct videobuf_queue_ops au0828_vbi_qops; } while (0) /* au0828-input.c */ -int au0828_rc_register(struct au0828_dev *dev); -void au0828_rc_unregister(struct au0828_dev *dev); -int au0828_rc_suspend(struct au0828_dev *dev); -int au0828_rc_resume(struct au0828_dev *dev); +#ifdef CONFIG_VIDEO_AU0828_RC +extern int au0828_rc_register(struct au0828_dev *dev); +extern void au0828_rc_unregister(struct au0828_dev *dev); +extern int au0828_rc_suspend(struct au0828_dev *dev); +extern int au0828_rc_resume(struct au0828_dev *dev); +#else +static inline int au0828_rc_register(struct au0828_dev *dev) { return 0; } +static inline void au0828_rc_unregister(struct au0828_dev *dev) { } +static inline int au0828_rc_suspend(struct au0828_dev *dev) { return 0; } +static inline int au0828_rc_resume(struct au0828_dev *dev) { return 0; } +#endif