iio: mma8452: add support for runtime power management
authorMartin Kepplinger <martink@posteo.de>
Thu, 3 Mar 2016 08:24:03 +0000 (09:24 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Mar 2016 17:27:56 +0000 (17:27 +0000)
commit96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8
tree30c971d10d174ed74d2890e3ae7cdd1e952c6532
parente866853d67868ac0f7e0779d19aaad07285c9ff3
iio: mma8452: add support for runtime power management

This adds support for runtime power management and, if configured, activates
automatic standby after 2 seconds of inactivity.

Inactivity means no read of acceleration values and no events triggered or
activated.

If CONFIG_PM is not set, this doesn't change anything for existing users.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c