From: Irina Tirdea Date: Sun, 11 Jan 2015 19:10:14 +0000 (+0200) Subject: iio: accel: mma9551: Add runtime pm support X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~82^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6da93a6710a3b1eb3d15b88bf96efaac322c893f;p=pandora-kernel.git iio: accel: mma9551: Add runtime pm support Add support for runtime pm to reduce the power consumed by the device when not used. If CONFIG_PM is not enabled, the device will be powered on at init and only powered off on system suspend. If CONFIG_PM is enabled, runtime pm autosuspend is used: - for raw reads will keep the device on for a specified time - for events it will keep the device on as long as we have at least one event active Signed-off-by: Irina Tirdea Reviewed-by: Vlad Dogaru Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed