diff options
| author | 2016-08-26 17:29:35 +0200 | |
|---|---|---|
| committer | 2016-08-29 19:54:08 +0100 | |
| commit | 2e1f44d8a7724e889f1a4f211aad13320cb80f1f (patch) | |
| tree | 2358d5be881e3b95ab431a1afda525a4604cab97 /scripts/stackusage | |
| parent | iio: adc: ti-ads1015: add missing of_node_put() in ads1015_get_channels_config_of() (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 <arnd@arndb.de>
Fixes: 7f6cf7414538 ("iio: hid-sensors: use asynchronous resume")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
