xref: /linux/drivers/iio/accel/adxl380.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * ADXL380 3-Axis Digital Accelerometer
4  *
5  * Copyright 2024 Analog Devices Inc.
6  */
7 
8 #ifndef _ADXL380_H_
9 #define _ADXL380_H_
10 
11 struct adxl380_chip_info {
12 	const char *name;
13 	const int scale_tbl[3][2];
14 	const int samp_freq_tbl[3];
15 	const int temp_offset;
16 	const u16 chip_id;
17 };
18 
19 extern const struct adxl380_chip_info adxl380_chip_info;
20 extern const struct adxl380_chip_info adxl382_chip_info;
21 
22 int adxl380_probe(struct device *dev, struct regmap *regmap,
23 		  const struct adxl380_chip_info *chip_info);
24 bool adxl380_readable_noinc_reg(struct device *dev, unsigned int reg);
25 
26 #endif /* _ADXL380_H_ */
27