xref: /linux/drivers/iio/accel/adxl345.h (revision 7d0ba6dbf8356d20b69cfd042800d5d51ac00bd7)
136edc939SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
25170512cSEva Rachel Retuya /*
35170512cSEva Rachel Retuya  * ADXL345 3-Axis Digital Accelerometer
45170512cSEva Rachel Retuya  *
55170512cSEva Rachel Retuya  * Copyright (c) 2017 Eva Rachel Retuya <eraretuya@gmail.com>
65170512cSEva Rachel Retuya  */
75170512cSEva Rachel Retuya 
85170512cSEva Rachel Retuya #ifndef _ADXL345_H_
95170512cSEva Rachel Retuya #define _ADXL345_H_
105170512cSEva Rachel Retuya 
11ef89f4b9SLars-Peter Clausen enum adxl345_device_type {
12024f5d4fSAndy Shevchenko 	ADXL345	= 1,
13024f5d4fSAndy Shevchenko 	ADXL375 = 2,
14ef89f4b9SLars-Peter Clausen };
15ef89f4b9SLars-Peter Clausen 
16*7d0ba6dbSBiju Das struct adxl345_chip_info {
17*7d0ba6dbSBiju Das 	const char *name;
18*7d0ba6dbSBiju Das 	unsigned int type;
19*7d0ba6dbSBiju Das };
20*7d0ba6dbSBiju Das 
21266be7cbSAndy Shevchenko int adxl345_core_probe(struct device *dev, struct regmap *regmap);
225170512cSEva Rachel Retuya 
235170512cSEva Rachel Retuya #endif /* _ADXL345_H_ */
24