xref: /linux/drivers/iio/common/hid-sensors/hid-sensor-trigger.h (revision e7d759f31ca295d589f7420719c311870bb3166f)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * HID Sensors Driver
4  * Copyright (c) 2012, Intel Corporation.
5  */
6 #ifndef _HID_SENSOR_TRIGGER_H
7 #define _HID_SENSOR_TRIGGER_H
8 
9 #include <linux/pm.h>
10 #include <linux/pm_runtime.h>
11 
12 struct hid_sensor_common;
13 struct iio_dev;
14 
15 extern const struct dev_pm_ops hid_sensor_pm_ops;
16 
17 int hid_sensor_setup_trigger(struct iio_dev *indio_dev, const char *name,
18 				struct hid_sensor_common *attrb);
19 void hid_sensor_remove_trigger(struct iio_dev *indio_dev,
20 			       struct hid_sensor_common *attrb);
21 int hid_sensor_power_state(struct hid_sensor_common *st, bool state);
22 
23 #endif
24