Skip to content

Commit 11dadb6

Browse files
Demon000jic23
authored andcommitted
iio: accel: adxl367: fix I2C FIFO data register
As specified in the datasheet, the I2C FIFO data register is 0x18, not 0x42. 0x42 was used by mistake when adapting the ADXL372 driver. Fix this mistake. Fixes: cbab791 ("iio: accel: add ADXL367 driver") Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240207033657.206171-2-demonsingur@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 1b92691 commit 11dadb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/accel/adxl367_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "adxl367.h"
1313

14-
#define ADXL367_I2C_FIFO_DATA 0x42
14+
#define ADXL367_I2C_FIFO_DATA 0x18
1515

1616
struct adxl367_i2c_state {
1717
struct regmap *regmap;

0 commit comments

Comments
 (0)