]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2583: fix unused function warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Nov 2016 14:01:44 +0000 (15:01 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 8 Nov 2016 20:27:12 +0000 (20:27 +0000)
commite6c40aacbe5a4f629606670249dad5017a5c68d2
tree5f000b829591930daa6d83b70b2d2038da8fb270
parentebd314e9608888ee54d73215d4e6827e84ac1c48
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: 4ccf7931cc76 ("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>
drivers/staging/iio/light/tsl2583.c