iio: tsl2583: add runtime power management support
authorBrian Masney <masneyb@onstation.org>
Tue, 25 Apr 2017 08:06:33 +0000 (04:06 -0400)
committerJonathan Cameron <jic23@kernel.org>
Tue, 16 May 2017 18:39:41 +0000 (19:39 +0100)
commit371894f5d1a00cd6c03aab0beb9789b474ea46b0
tree4d5c066824033e268d042b942309ce6206caa38f
parentb7079eeac5da0d50a89a73969ff390e8cdecec44
iio: tsl2583: add runtime power management support

This patch adds runtime power management support to the tsl2583 driver.
The device is powered off after two seconds of inactivity. Verified that
the driver still functions correctly using a TSL2581 hooked up to a
Raspberry Pi 2.

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