diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-26 12:09:58 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-01 13:15:01 -0200 |
commit | 733d0def3ebdd1d088330d904149af21fa4b9ae2 (patch) | |
tree | f2821686b9360c61cf1d529559b2d2704910809d /drivers/mfd/mt6397-core.c | |
parent | b97baa3e22e18dac42001e665cf27ad1211bf878 (diff) | |
download | op-kernel-dev-733d0def3ebdd1d088330d904149af21fa4b9ae2.zip op-kernel-dev-733d0def3ebdd1d088330d904149af21fa4b9ae2.tar.gz |
[media] b2c2: flexcop: avoid unused function warnings
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>
Diffstat (limited to 'drivers/mfd/mt6397-core.c')
0 files changed, 0 insertions, 0 deletions