iio: hid_sensor_hub: Common PM functions
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 7 Jan 2015 18:55:53 +0000 (10:55 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 25 Jan 2015 22:55:39 +0000 (22:55 +0000)
commit2b89635e9a9e7cae5d137384842c3da7726ed197
tree1b5eefb7f1f52a9a8fe075da8778a8033e522738
parent3e5976dcd13f2d385f0742b02b1071230ce17f15
iio: hid_sensor_hub: Common PM functions

To improvement power and performance, both regular and run time callbacks
are introduced. Because of auto suspend delay, two consecutive read
don't have to go through full power on/off procedure. The auto suspend
time can be adjusted using regular power attributes of PM sysfs.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-trigger.c
drivers/iio/common/hid-sensors/hid-sensor-trigger.h