staging: iio: isl29018: change isl29018_read_raw() to only have one exit point
authorBrian Masney <masneyb@onstation.org>
Tue, 27 Sep 2016 00:20:19 +0000 (20:20 -0400)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Oct 2016 13:55:34 +0000 (14:55 +0100)
commit5611cd6fc61dbccdba61656bea9c5c1634b51e46
treeccbb6088d3e514f9207862b5ce55ca4d0b634d90
parent5faf98cb319bc7ce7cef080be1bbebba44233332
staging: iio: isl29018: change isl29018_read_raw() to only have one exit point

When the chip is in a suspended state, isl29018_read_raw() will return
-EBUSY. Change the function so that it only has a single exit point.

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