staging: iio: isl29018: check if the chip is in a suspended state
authorBrian Masney <masneyb@onstation.org>
Tue, 27 Sep 2016 00:20:20 +0000 (20:20 -0400)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Oct 2016 13:57:04 +0000 (14:57 +0100)
commit00053566385e3e7a2f81f0fd2fa09bccce1589f2
tree7d33515d97b4103e89a94a1db06dee9c55efa8d6
parent5611cd6fc61dbccdba61656bea9c5c1634b51e46
staging: iio: isl29018: check if the chip is in a suspended state

Add a check to isl29018_write_raw() to ensure that the chip is not in a
suspended state. This makes the code consistent with what is present
in isl29018_read_raw().

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