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 struct iio_info *info; 16 const int temp_offset; 17 const u16 chip_id; 18 const bool has_low_power; 19 }; 20 21 extern const struct adxl380_chip_info adxl318_chip_info; 22 extern const struct adxl380_chip_info adxl319_chip_info; 23 extern const struct adxl380_chip_info adxl380_chip_info; 24 extern const struct adxl380_chip_info adxl382_chip_info; 25 26 int adxl380_probe(struct device *dev, struct regmap *regmap, 27 const struct adxl380_chip_info *chip_info); 28 bool adxl380_readable_noinc_reg(struct device *dev, unsigned int reg); 29 30 #endif /* _ADXL380_H_ */ 31