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