]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc087fd00746c3439b4669bc87589e166798897b5
treea77bebddaf477f251e8f46a3f2a244d47c802820
parent494b25b73abda9048d50b2e44a7a493335203a22
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