2019-05-30 07:57:49 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-09-05 20:56:00 +08:00
|
|
|
/*
|
|
|
|
* HID Sensors Driver
|
|
|
|
* Copyright (c) 2012, Intel Corporation.
|
|
|
|
*/
|
|
|
|
#ifndef _HID_SENSOR_TRIGGER_H
|
|
|
|
#define _HID_SENSOR_TRIGGER_H
|
|
|
|
|
2015-01-08 02:55:53 +08:00
|
|
|
#include <linux/pm.h>
|
|
|
|
#include <linux/pm_runtime.h>
|
|
|
|
|
|
|
|
extern const struct dev_pm_ops hid_sensor_pm_ops;
|
|
|
|
|
2012-09-05 20:56:00 +08:00
|
|
|
int hid_sensor_setup_trigger(struct iio_dev *indio_dev, const char *name,
|
2012-12-15 20:45:00 +08:00
|
|
|
struct hid_sensor_common *attrb);
|
2020-04-24 12:34:18 +08:00
|
|
|
void hid_sensor_remove_trigger(struct iio_dev *indio_dev,
|
|
|
|
struct hid_sensor_common *attrb);
|
2014-04-19 07:22:00 +08:00
|
|
|
int hid_sensor_power_state(struct hid_sensor_common *st, bool state);
|
2012-09-05 20:56:00 +08:00
|
|
|
|
|
|
|
#endif
|