aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-03-27 15:34:39 -0700
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2020-03-28 22:04:32 +0100
commit2861be4ca9125ee1b7c49895948ca4236449a7fe (patch)
treefb85b91e456850a4c156b7984167bbe8dd27075d /include/linux/iio
parentiio: cros_ec: Register to cros_ec_sensorhub when EC supports FIFO (diff)
downloadlinux-dev-2861be4ca9125ee1b7c49895948ca4236449a7fe.tar.xz
linux-dev-2861be4ca9125ee1b7c49895948ca4236449a7fe.zip
iio: cros_ec: Remove pm function
Since cros_ec_sensorhub is shutting down the FIFO when the device suspends, no need to slow down the EC sampling period rate. It was necesseary to do that before command CMD_FIFO_INT_ENABLE was introduced, but now all supported chromebooks have it. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'include/linux/iio')
-rw-r--r--include/linux/iio/common/cros_ec_sensors_core.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/iio/common/cros_ec_sensors_core.h b/include/linux/iio/common/cros_ec_sensors_core.h
index b8f573ca9dcc..96ea4551945e 100644
--- a/include/linux/iio/common/cros_ec_sensors_core.h
+++ b/include/linux/iio/common/cros_ec_sensors_core.h
@@ -30,9 +30,6 @@ enum {
*/
#define CROS_EC_SAMPLE_SIZE (sizeof(s64) * 2)
-/* Minimum sampling period to use when device is suspending */
-#define CROS_EC_MIN_SUSPEND_SAMPLING_FREQUENCY 1000 /* 1 second */
-
typedef irqreturn_t (*cros_ec_sensors_capture_t)(int irq, void *p);
/**
@@ -117,8 +114,6 @@ int cros_ec_sensors_core_write(struct cros_ec_sensors_core_state *st,
struct iio_chan_spec const *chan,
int val, int val2, long mask);
-extern const struct dev_pm_ops cros_ec_sensors_pm_ops;
-
/* List of extended channel specification for all sensors */
extern const struct iio_chan_spec_ext_info cros_ec_sensors_ext_info[];