aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/adxl372.h
diff options
context:
space:
mode:
authorStefan Popa <stefan.popa@analog.com>2018-09-04 17:12:32 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-09-08 15:54:38 +0100
commit94dbb46c7a8f0ee27394bc81f34b666dc4a14b71 (patch)
tree627eb6a74b0f0e026e1b2639d3900256ebb5f603 /drivers/iio/accel/adxl372.h
parentiio: adxl372: Refactor the driver (diff)
downloadlinux-dev-94dbb46c7a8f0ee27394bc81f34b666dc4a14b71.tar.xz
linux-dev-94dbb46c7a8f0ee27394bc81f34b666dc4a14b71.zip
iio: adxl372: Add support for I2C communication
The adxl372 is designed to communicate in either SPI or I2C protocol. It autodetects the format being used, requiring no configuration control to select the format. Signed-off-by: Stefan Popa <stefan.popa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/adxl372.h')
-rw-r--r--drivers/iio/accel/adxl372.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/accel/adxl372.h b/drivers/iio/accel/adxl372.h
index 5da89b19c17e..80a0aa9714fc 100644
--- a/drivers/iio/accel/adxl372.h
+++ b/drivers/iio/accel/adxl372.h
@@ -8,6 +8,8 @@
#ifndef _ADXL372_H_
#define _ADXL372_H_
+#define ADXL372_REVID 0x03
+
int adxl372_probe(struct device *dev, struct regmap *regmap,
int irq, const char *name);
bool adxl372_readable_noinc_reg(struct device *dev, unsigned int reg);