bmi160.h (597473720f4dc69749542bfcfed4a927a43d935e) bmi160.h (5dea3fb066f015facfc97b0b5cdfd7bb26523785)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BMI160_H_
3#define BMI160_H_
4
5#include <linux/iio/iio.h>
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BMI160_H_
3#define BMI160_H_
4
5#include <linux/iio/iio.h>
6#include <linux/regulator/consumer.h>
6
7struct bmi160_data {
8 struct regmap *regmap;
9 struct iio_trigger *trig;
7
8struct bmi160_data {
9 struct regmap *regmap;
10 struct iio_trigger *trig;
11 struct regulator_bulk_data supplies[2];
10};
11
12extern const struct regmap_config bmi160_regmap_config;
13
14int bmi160_core_probe(struct device *dev, struct regmap *regmap,
15 const char *name, bool use_spi);
16
17int bmi160_enable_irq(struct regmap *regmap, bool enable);
18
19int bmi160_probe_trigger(struct iio_dev *indio_dev, int irq, u32 irq_type);
20
21#endif /* BMI160_H_ */
12};
13
14extern const struct regmap_config bmi160_regmap_config;
15
16int bmi160_core_probe(struct device *dev, struct regmap *regmap,
17 const char *name, bool use_spi);
18
19int bmi160_enable_irq(struct regmap *regmap, bool enable);
20
21int bmi160_probe_trigger(struct iio_dev *indio_dev, int irq, u32 irq_type);
22
23#endif /* BMI160_H_ */