]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: imu: st_lsm6dsx: Increase ODR_LIST_SIZE
authorJimmy Assarsson <jimmyassarsson@gmail.com>
Tue, 24 Mar 2020 21:52:25 +0000 (22:52 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:25 +0000 (16:56 +0100)
Support for sensor with up to 8 different ODR settings.
Required for supporting LIS3MDL as sensor hub slave device.

Signed-off-by: Jimmy Assarsson <jimmyassarsson@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h

index f2113a63721a8619e57ab685cd28864d3b7f8054..38b613072da2d0810c73ede3dd5b817fb620ab5d 100644 (file)
@@ -111,7 +111,7 @@ struct st_lsm6dsx_odr {
        u8 val;
 };
 
-#define ST_LSM6DSX_ODR_LIST_SIZE       6
+#define ST_LSM6DSX_ODR_LIST_SIZE       8
 struct st_lsm6dsx_odr_table_entry {
        struct st_lsm6dsx_reg reg;