xref: /openbmc/linux/drivers/iio/accel/bmc150-accel.h (revision 29d97219)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BMC150_ACCEL_H_
3 #define _BMC150_ACCEL_H_
4 
5 struct regmap;
6 
7 enum {
8 	bmc150,
9 	bmi055,
10 	bma255,
11 	bma250e,
12 	bma222,
13 	bma222e,
14 	bma280,
15 };
16 
17 int bmc150_accel_core_probe(struct device *dev, struct regmap *regmap, int irq,
18 			    const char *name, bool block_supported);
19 int bmc150_accel_core_remove(struct device *dev);
20 struct i2c_client *bmc150_get_second_device(struct i2c_client *second_device);
21 void bmc150_set_second_device(struct i2c_client *second_device);
22 extern const struct dev_pm_ops bmc150_accel_pm_ops;
23 extern const struct regmap_config bmc150_regmap_conf;
24 
25 #endif  /* _BMC150_ACCEL_H_ */
26