Skip to content
Commit 2e1f44d8 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Cameron
Browse files

iio: hid-sensors: avoid unused function warning



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>
parent 943bbe74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment