• Arnd Bergmann's avatar
    [media] b2c2: flexcop: avoid unused function warnings · 733d0def
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    733d0def
flexcop-fe-tuner.c 16.9 KB