diff options
| author | Arnd Bergmann <[email protected]> | 2016-01-26 12:09:58 -0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2016-02-01 13:15:01 -0200 |
| commit | 733d0def3ebdd1d088330d904149af21fa4b9ae2 (patch) | |
| tree | f2821686b9360c61cf1d529559b2d2704910809d /tools/perf/scripts/python/netdev-times.py | |
| parent | b97baa3e22e18dac42001e665cf27ad1211bf878 (diff) | |
[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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions