1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 
3 #ifndef BMI270_H_
4 #define BMI270_H_
5 
6 #include <linux/regmap.h>
7 #include <linux/iio/iio.h>
8 
9 struct bmi270_chip_info {
10 	const char *name;
11 	int chip_id;
12 	const char *fw_name;
13 };
14 
15 extern const struct regmap_config bmi270_regmap_config;
16 extern const struct bmi270_chip_info bmi260_chip_info;
17 extern const struct bmi270_chip_info bmi270_chip_info;
18 
19 struct device;
20 int bmi270_core_probe(struct device *dev, struct regmap *regmap,
21 		      const struct bmi270_chip_info *chip_info);
22 
23 #endif  /* BMI270_H_ */
24