xref: /linux/drivers/iio/accel/bma220.h (revision 83bd89291f5cc866f60d32c34e268896c7ba8a3d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Forward declarations needed by the bma220 sources.
4  *
5  * Copyright 2025 Petre Rodan <petre.rodan@subdimension.ro>
6  */
7 
8 #ifndef _BMA220_H
9 #define _BMA220_H
10 
11 #include <linux/pm.h>
12 #include <linux/regmap.h>
13 
14 #define BMA220_REG_WDT				0x17
15 #define BMA220_WDT_MASK				GENMASK(2, 1)
16 #define BMA220_WDT_OFF				0x0
17 #define BMA220_WDT_1MS				0x2
18 #define BMA220_WDT_10MS				0x3
19 
20 struct device;
21 
22 extern const struct regmap_config bma220_i2c_regmap_config;
23 extern const struct regmap_config bma220_spi_regmap_config;
24 extern const struct dev_pm_ops bma220_pm_ops;
25 
26 int bma220_common_probe(struct device *dev, struct regmap *regmap, int irq);
27 
28 #endif
29