#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/events.h>
#include <linux/iio/buffer.h>
#include <linux/iio/gyro/itg3200.h>
int itg3200_write_reg_8(struct iio_dev *indio_dev,
u8 reg_address, u8 val)
{ … }
int itg3200_read_reg_8(struct iio_dev *indio_dev,
u8 reg_address, u8 *val)
{ … }
static int itg3200_read_reg_s16(struct iio_dev *indio_dev, u8 lower_reg_address,
int *val)
{ … }
static int itg3200_read_raw(struct iio_dev *indio_dev,
const struct iio_chan_spec *chan,
int *val, int *val2, long info)
{ … }
static int itg3200_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int val,
int val2,
long mask)
{ … }
static int itg3200_reset(struct iio_dev *indio_dev)
{ … }
static int itg3200_enable_full_scale(struct iio_dev *indio_dev)
{ … }
static int itg3200_initial_setup(struct iio_dev *indio_dev)
{ … }
static const struct iio_mount_matrix *
itg3200_get_mount_matrix(const struct iio_dev *indio_dev,
const struct iio_chan_spec *chan)
{ … }
static const struct iio_chan_spec_ext_info itg3200_ext_info[] = …;
#define ITG3200_ST …
#define ITG3200_GYRO_CHAN(_mod) …
static const struct iio_chan_spec itg3200_channels[] = …;
static const struct iio_info itg3200_info = …;
static const unsigned long itg3200_available_scan_masks[] = …;
static int itg3200_probe(struct i2c_client *client)
{ … }
static void itg3200_remove(struct i2c_client *client)
{ … }
static int itg3200_suspend(struct device *dev)
{ … }
static int itg3200_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(itg3200_pm_ops, itg3200_suspend,
itg3200_resume);
static const struct i2c_device_id itg3200_id[] = …;
MODULE_DEVICE_TABLE(i2c, itg3200_id);
static const struct of_device_id itg3200_of_match[] = …;
MODULE_DEVICE_TABLE(of, itg3200_of_match);
static struct i2c_driver itg3200_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;