diff options
author | Stefan Popa | 2018-09-04 17:12:32 +0300 |
---|---|---|
committer | Jonathan Cameron | 2018-09-08 15:54:38 +0100 |
commit | 94dbb46c7a8f0ee27394bc81f34b666dc4a14b71 (patch) | |
tree | 627eb6a74b0f0e026e1b2639d3900256ebb5f603 /drivers/iio/accel/adxl372.h | |
parent | d9e8fd0421c2047ac233141612a433490963d211 (diff) |
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.h | 2 |
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); |