summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMikko Koivunen <mikko.koivunen@fi.rohmeurope.com>2017-05-18 15:12:50 +0300
committerJonathan Cameron <jic23@kernel.org>2017-05-21 17:06:11 +0300
commit12d74949133e2450533894ea01ce0c56646ce006 (patch)
treec34af63d36958d341fb26b3870dc5cd59c310f14 /include/linux
parentf87fa26177ac4dd5ebcc1e598a90142ecb4973cb (diff)
downloadlinux-12d74949133e2450533894ea01ce0c56646ce006.tar.xz
iio: light: rpr0521 poweroff for probe fails
Set sensor measurement off after probe fail in pm_runtime_set_active() or iio_device_register(). Without this change sensor measurement stays on even though probe fails on these calls. This is maybe rare case, but causes constant power drain without any benefits when it happens. Power drain is 20-500uA, typically 180uA. 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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions