xref: /openbmc/linux/drivers/iio/common/hid-sensors/hid-sensor-trigger.h (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1a61127c2SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
273c6768bSsrinivas pandruvada /*
373c6768bSsrinivas pandruvada  * HID Sensors Driver
473c6768bSsrinivas pandruvada  * Copyright (c) 2012, Intel Corporation.
573c6768bSsrinivas pandruvada  */
673c6768bSsrinivas pandruvada #ifndef _HID_SENSOR_TRIGGER_H
773c6768bSsrinivas pandruvada #define _HID_SENSOR_TRIGGER_H
873c6768bSsrinivas pandruvada 
92b89635eSSrinivas Pandruvada #include <linux/pm.h>
102b89635eSSrinivas Pandruvada #include <linux/pm_runtime.h>
112b89635eSSrinivas Pandruvada 
12*fb226ae7SJonathan Cameron struct hid_sensor_common;
13*fb226ae7SJonathan Cameron struct iio_dev;
14*fb226ae7SJonathan Cameron 
152b89635eSSrinivas Pandruvada extern const struct dev_pm_ops hid_sensor_pm_ops;
162b89635eSSrinivas Pandruvada 
1773c6768bSsrinivas pandruvada int hid_sensor_setup_trigger(struct iio_dev *indio_dev, const char *name,
18e07c6d17SAlexander Holler 				struct hid_sensor_common *attrb);
19067fda1cSAlexandru Ardelean void hid_sensor_remove_trigger(struct iio_dev *indio_dev,
20067fda1cSAlexandru Ardelean 			       struct hid_sensor_common *attrb);
2156ff6be6SSrinivas Pandruvada int hid_sensor_power_state(struct hid_sensor_common *st, bool state);
2273c6768bSsrinivas pandruvada 
2373c6768bSsrinivas pandruvada #endif
24