staging: iio: tsl2583: check return values from taos_chip_{on,off}
authorBrian Masney <masneyb@onstation.org>
Fri, 28 Oct 2016 10:00:16 +0000 (06:00 -0400)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Nov 2016 18:50:06 +0000 (18:50 +0000)
commit84bc1704cbf438761f870ca4ce19bbfe5b949fb6
tree9e5159064a922b8f1757326c6f21d1b3cf6b0f96
parent27f4fabd4f9455852ebff253b21423406f24878b
staging: iio: tsl2583: check return values from taos_chip_{on,off}

The return value from taos_chip_on() and taos_chip_off() was not
checked in taos_luxtable_store() and taos_probe(). This patch adds
proper error checking to these function calls.

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