drivers/iio/common/hid-sensors/hid-sensor-trigger.h

Source file repositories/reference/linux-study-clean/drivers/iio/common/hid-sensors/hid-sensor-trigger.h

File Facts

System
Linux kernel
Corpus path
drivers/iio/common/hid-sensors/hid-sensor-trigger.h
Extension
.h
Size
615 bytes
Lines
24
Domain
Driver Families
Bucket
drivers/iio
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _HID_SENSOR_TRIGGER_H
#define _HID_SENSOR_TRIGGER_H

#include <linux/pm.h>
#include <linux/pm_runtime.h>

struct hid_sensor_common;
struct iio_dev;

extern const struct dev_pm_ops hid_sensor_pm_ops;

int hid_sensor_setup_trigger(struct iio_dev *indio_dev, const char *name,
				struct hid_sensor_common *attrb);
void hid_sensor_remove_trigger(struct iio_dev *indio_dev,
			       struct hid_sensor_common *attrb);
int hid_sensor_power_state(struct hid_sensor_common *st, bool state);

#endif

Annotation

Implementation Notes