• Arnd Bergmann's avatar
    iio: hid-sensors: avoid unused function warning · 2e1f44d8
    Arnd Bergmann authored
    A small rework of the PM code in this driver introduced a harmless
    warning when CONFIG_PM_SLEEP is not set:
    
    drivers/iio/common/hid-sensors/hid-sensor-trigger.c:212:12: error: 'hid_sensor_resume' defined but not used [-Werror=unused-function]
    
    This removes the #ifdef and instead marks all three PM functions
    as __maybe_unused, which covers all possible cases and is harder
    to get wrong.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: 7f6cf741 ("iio: hid-sensors: use asynchronous resume")
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    2e1f44d8
hid-sensor-trigger.c 6.61 KB