brintos

brintos / linux-shallow public Read only

0
0
Text · 642 B · a683625 Raw
27 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * ADXL380 3-Axis Digital Accelerometer4 *5 * Copyright 2024 Analog Devices Inc.6 */7 8#ifndef _ADXL380_H_9#define _ADXL380_H_10 11struct 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 19extern const struct adxl380_chip_info adxl380_chip_info;20extern const struct adxl380_chip_info adxl382_chip_info;21 22int adxl380_probe(struct device *dev, struct regmap *regmap,23		  const struct adxl380_chip_info *chip_info);24bool adxl380_readable_noinc_reg(struct device *dev, unsigned int reg);25 26#endif /* _ADXL380_H_ */27