#include <linux/pm_runtime.h>
#include <linux/iio/common/inv_sensors_timestamp.h>
#include <linux/iio/events.h>
#include "inv_mpu_iio.h"
static unsigned int inv_scan_query_mpu6050(struct iio_dev *indio_dev)
{ … }
static unsigned int inv_scan_query_mpu9x50(struct iio_dev *indio_dev)
{ … }
static unsigned int inv_scan_query(struct iio_dev *indio_dev)
{ … }
static unsigned int inv_compute_skip_samples(const struct inv_mpu6050_state *st)
{ … }
int inv_mpu6050_prepare_fifo(struct inv_mpu6050_state *st, bool enable)
{ … }
static int inv_mpu6050_set_enable(struct iio_dev *indio_dev, bool enable)
{ … }
static int inv_mpu_data_rdy_trigger_set_state(struct iio_trigger *trig,
bool state)
{ … }
static const struct iio_trigger_ops inv_mpu_trigger_ops = …;
static irqreturn_t inv_mpu6050_interrupt_timestamp(int irq, void *p)
{ … }
static irqreturn_t inv_mpu6050_interrupt_handle(int irq, void *p)
{ … }
int inv_mpu6050_probe_trigger(struct iio_dev *indio_dev, int irq_type)
{ … }