iio: light: rpr0521 disable sensor -bugfix
authorMikko Koivunen <mikko.koivunen@fi.rohmeurope.com>
Thu, 18 May 2017 12:12:49 +0000 (15:12 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 May 2017 14:06:10 +0000 (15:06 +0100)
commitf87fa26177ac4dd5ebcc1e598a90142ecb4973cb
tree9c9d51c1ff3fccb3b14f0937dfc7ad6f5dd08940
parent52325ff42a9aa7bdcbcc5461f6eec4c4f93ed944
iio: light: rpr0521 disable sensor -bugfix

Sensor was marked enabled on each call even if the call was for disabling
sensor.

Signed-off-by: Mikko Koivunen <mikko.koivunen@fi.rohmeurope.com>
Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/rpr0521.c