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> |
||
|---|---|---|
| .. | ||
| flexcop-common.h | ||
| flexcop-eeprom.c | ||
| flexcop-fe-tuner.c | ||
| flexcop-hw-filter.c | ||
| flexcop-i2c.c | ||
| flexcop-misc.c | ||
| flexcop-reg.h | ||
| flexcop-sram.c | ||
| flexcop.c | ||
| flexcop.h | ||
| flexcop_ibi_value_be.h | ||
| flexcop_ibi_value_le.h | ||
| Kconfig | ||
| Makefile | ||