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