]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iio: magnetometer: st_magn: fix status register address for LSM303AGR
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Wed, 16 Aug 2017 17:02:50 +0000 (19:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Aug 2017 14:21:48 +0000 (15:21 +0100)
Fixes: 97865fe41322 (iio: st_sensors: verify interrupt event to status)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/st_magn_core.c

index 8e1b0861fbe4a63b6b50466f320bd65e6e48f3c9..c11f0da86e743b86bf4b0f8543231bf9b8164ba8 100644 (file)
@@ -358,7 +358,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
                        .mask_int1 = 0x01,
                        .addr_ihl = 0x63,
                        .mask_ihl = 0x04,
-                       .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR,
+                       .addr_stat_drdy = 0x67,
                },
                .multi_read_bit = false,
                .bootime = 2,