]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97a5091ebd773da02cce3978d5d88710b284a4ff
tree1b5eefb7f1f52a9a8fe075da8778a8033e522738
parent2d7913f5c24da8f524a2d00a8d8cad46c473d5ea
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