staging: iio: isl29028: add runtime power management support
authorBrian Masney <masneyb@onstation.org>
Tue, 17 Jan 2017 09:25:02 +0000 (04:25 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Jan 2017 13:21:40 +0000 (13:21 +0000)
commit2db5054ac28d4ab2eaa6c67e2d9f61fa5ba006b8
treea77bebddaf477f251e8f46a3f2a244d47c802820
parent0fac96ed50d1bb6a0ce8dd44b94d3643a0dc3c91
staging: iio: isl29028: add runtime power management support

This patch adds runtime power management support to the isl29028 driver.
It defaults to powering off the device after two seconds of inactivity.

isl29028_chip_init_and_power_on() currently only zeros the CONFIGURE
register on the chip, which will cause the chip to turn off. This patch
also renames that function to isl29028_clear_configure_reg() since it is
now used in several places.

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