diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2015-01-07 10:55:53 -0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-25 22:55:39 +0000 |
commit | 2b89635e9a9e7cae5d137384842c3da7726ed197 (patch) | |
tree | 1b5eefb7f1f52a9a8fe075da8778a8033e522738 /drivers/iio/common/hid-sensors/hid-sensor-trigger.h | |
parent | 3e5976dcd13f2d385f0742b02b1071230ce17f15 (diff) | |
download | talos-obmc-linux-2b89635e9a9e7cae5d137384842c3da7726ed197.tar.gz talos-obmc-linux-2b89635e9a9e7cae5d137384842c3da7726ed197.zip |
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>
Diffstat (limited to 'drivers/iio/common/hid-sensors/hid-sensor-trigger.h')
-rw-r--r-- | drivers/iio/common/hid-sensors/hid-sensor-trigger.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.h b/drivers/iio/common/hid-sensors/hid-sensor-trigger.h index 0f8e78c249d3..9f4713f42ecb 100644 --- a/drivers/iio/common/hid-sensors/hid-sensor-trigger.h +++ b/drivers/iio/common/hid-sensors/hid-sensor-trigger.h @@ -19,6 +19,11 @@ #ifndef _HID_SENSOR_TRIGGER_H #define _HID_SENSOR_TRIGGER_H +#include <linux/pm.h> +#include <linux/pm_runtime.h> + +extern const struct dev_pm_ops hid_sensor_pm_ops; + int hid_sensor_setup_trigger(struct iio_dev *indio_dev, const char *name, struct hid_sensor_common *attrb); void hid_sensor_remove_trigger(struct hid_sensor_common *attrb); |