iio: accel: adxl367: fix I2C FIFO data register
authorCosmin Tanislav <demonsingur@gmail.com>
Wed, 7 Feb 2024 03:36:51 +0000 (05:36 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Feb 2024 14:31:14 +0000 (14:31 +0000)
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: cbab791c5e2a ("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>
drivers/iio/accel/adxl367_i2c.c

index b595fe94f3a321b2d8fc986d64d29dbc4f024ccc..62c74bdc0d77bff87b822d1d6ed2502ffbed6687 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "adxl367.h"
 
-#define ADXL367_I2C_FIFO_DATA  0x42
+#define ADXL367_I2C_FIFO_DATA  0x18
 
 struct adxl367_i2c_state {
        struct regmap *regmap;