iio: sx9500: rework error handling of raw readings
authorVlad Dogaru <vlad.dogaru@intel.com>
Tue, 30 Jun 2015 11:20:58 +0000 (14:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 5 Jul 2015 13:02:19 +0000 (14:02 +0100)
commit657c7ff56f8e96d4de7146103f08f3316dd822df
tree24190101f5c2ac1f13ba438732d845bb9e55e4b3
parent2616dfa1d3061b02c3cbce60bc1a59281eccae31
iio: sx9500: rework error handling of raw readings

Fix error handling so that we can power the chip down even if a raw read
fails.

Reported-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/sx9500.c