summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2019-12-14 17:52:55 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-12-29 15:20:06 +0000
commit007f2ebbac2ac7f0f6d80ca5afd3f51c5a083838 (patch)
treeeb6f083124506232bbe9be8d7f1345994c56e8bc /drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
parentee978bb86d055131364baa617fbdb0a9bb52612a (diff)
downloadlinux-stable-007f2ebbac2ac7f0f6d80ca5afd3f51c5a083838.tar.gz
linux-stable-007f2ebbac2ac7f0f6d80ca5afd3f51c5a083838.tar.bz2
linux-stable-007f2ebbac2ac7f0f6d80ca5afd3f51c5a083838.zip
iio: imu: st_lsm6dsx: check if master_enable is located in primary page
Check if the master enable register is located in the primary or in the secondary memory page. This is a preliminary patch to support i2c master controller on lsm6dsm devices Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c')
-rw-r--r--drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
index 91dc9796add7..b8cfea977968 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
@@ -868,6 +868,7 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
.mask = BIT(6),
},
.master_en = {
+ .sec_page = true,
.addr = 0x14,
.mask = BIT(2),
},
@@ -1243,6 +1244,7 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
.mask = BIT(6),
},
.master_en = {
+ .sec_page = true,
.addr = 0x14,
.mask = BIT(2),
},