android_kernel_oneplus_msm8998/drivers/media/common
Arnd Bergmann 7a06f431f9 b2c2: flexcop: avoid unused function warnings
commit 733d0def3ebdd1d088330d904149af21fa4b9ae2 upstream.

The flexcop driver has two functions that are normally used, except
when multiple frontend drivers are disabled:

drivers/media/common/b2c2/flexcop-fe-tuner.c:42:12: warning: 'flexcop_set_voltage' defined but not used [-Wunused-function]
drivers/media/common/b2c2/flexcop-fe-tuner.c:71:12: warning: 'flexcop_sleep' defined but not used [-Wunused-function]

This avoids the build warning by updating the #ifdef for flexcop_set_voltage
to the exact condition under which it is used. For flexcop_sleep, the
condition is rather complex, so I resort to marking it as __maybe_unused,
so the compiler can silently drop it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:48 +01:00
..
b2c2 b2c2: flexcop: avoid unused function warnings 2018-02-25 11:03:48 +01:00
saa7146 [media] saa7146: use swap() in sort_and_eliminate() 2015-07-06 08:25:49 -03:00
siano [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
btcx-risc.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
cx2341x.c [media] v4l2-common: move v4l2_ctrl_check to cx2341x 2014-11-25 08:25:36 -02:00
cypress_firmware.c [media] media: move dvb-usb-v2/cypress_firmware.c to media/common 2013-03-29 11:35:06 -03:00
cypress_firmware.h [media] media: move dvb-usb-v2/cypress_firmware.c to media/common 2013-03-29 11:35:06 -03:00
Kconfig [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
Makefile [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
tveeprom.c [media] tveeprom: Update list of chips and extend serial number to 32bits 2014-11-03 16:18:49 -02:00