]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: tsl2583: remove unnecessary chip status check in taos_get_lux
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:17 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:18 +0000 (13:07 +0000)
commit6a77e3f65130ad0fbc9b305e93efca59202b3626
tree79377f201d5a9114edf039df7ed2c48eb2c9f136
parentacf9ead8fa2ef7a41762c024ae4b4ac8ecb71ee8
staging: iio: tsl2583: remove unnecessary chip status check in taos_get_lux

taos_get_lux checks to see if the chip is in a working state. This
check is not necessary since it is only called from tsl2583_read_raw
and in_illuminance_calibrate_store (via taos_als_calibrate). The chip
state is already checked by these functions.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c