diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-08 15:01:44 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-08 21:27:12 +0100 |
commit | c266cda29ae647290042eb0f75723762b193f984 (patch) | |
tree | 5f000b829591930daa6d83b70b2d2038da8fb270 /drivers/iio | |
parent | staging: iio: ad9832: allocate data before using (diff) | |
download | linux-c266cda29ae647290042eb0f75723762b193f984.tar.xz linux-c266cda29ae647290042eb0f75723762b193f984.zip |
staging: iio: tsl2583: fix unused function warning
Removing a call to the taos_chip_off() makes it unused when CONFIG_PM
is disabled:
drivers/staging/iio/light/tsl2583.c:438:12: error: ‘taos_chip_off’ defined but not used [-Werror=unused-function]
This removes all the #ifdef in this file, and marks the PM functions as
__maybe_unused instead, which is more reliable and gives us better
compile time coverage.
Fixes: 0561155f6fc5 ("staging: iio: tsl2583: don't shutdown chip when updating the lux table")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions