• Arnd Bergmann's avatar
    mfd: as3722: Mark PM functions as __maybe_unused · a7b956fd
    Arnd Bergmann authored
    The newly introduced as3722_i2c_suspend/resume functions are built
    unconditionally, but only used when power management is enabled,
    so we get a warning otherwise:
    
    drivers/mfd/as3722.c:427:12: warning: 'as3722_i2c_suspend' defined but not used [-Wunused-function]
    drivers/mfd/as3722.c:438:12: warning: 'as3722_i2c_resume' defined but not used [-Wunused-function]
    
    This marks them both as __maybe_unused, which avoids an ugly #ifdef
    and gives us best compile-time coverage. When they are unused, the
    compiler will silently drop the functions from its output.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: 35deff7e ("mfd: as3722: Handle interrupts on suspend")
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    a7b956fd
as3722.c 12.7 KB