diff options
| author | Arnd Bergmann <[email protected]> | 2016-08-26 17:29:35 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-08-29 19:54:08 +0100 |
| commit | 2e1f44d8a7724e889f1a4f211aad13320cb80f1f (patch) | |
| tree | 2358d5be881e3b95ab431a1afda525a4604cab97 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 943bbe743ce4c2846c41812186411841b0c9d7a1 (diff) | |
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: Arnd Bergmann <[email protected]>
Fixes: 7f6cf7414538 ("iio: hid-sensors: use asynchronous resume")
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions