summaryrefslogtreecommitdiff
path: root/drivers/iio/imu/st_lsm9ds0/st_lsm9ds0.h
blob: 76678cdefb0747953a1adbfe9b773c3848e6a673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */
// STMicroelectronics LSM9DS0 IMU driver

#ifndef ST_LSM9DS0_H
#define ST_LSM9DS0_H

struct iio_dev;
struct regulator;

struct st_lsm9ds0 {
	struct device *dev;
	const char *name;
	int irq;
	struct iio_dev *accel;
	struct iio_dev *magn;
	struct regulator *vdd;
	struct regulator *vdd_io;
};

int st_lsm9ds0_probe(struct st_lsm9ds0 *lsm9ds0, struct regmap *regmap);

#endif /* ST_LSM9DS0_H */