]> git.karo-electronics.de Git - linux-beck.git/commit
iio: light: pa12203001: Poweroff chip if register fails
authorAdriana Reus <adriana.reus@intel.com>
Fri, 6 Nov 2015 09:10:37 +0000 (11:10 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 8 Nov 2015 15:34:40 +0000 (15:34 +0000)
commit536bbca7cfc9e7a85704de552fcf4b5d1062a38e
treecfaa05ac5ee3f61e9e3ddadf231e72096d9e881a
parenta84ef0d181d917125f1f16cffe53f84c19968969
iio: light: pa12203001: Poweroff chip if register fails

Make sure we poweroff the chip if for any reason iio_register
returns an error.

Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/pa12203001.c