summaryrefslogtreecommitdiff
path: root/drivers/iio/imu
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2020-04-06 22:00:25 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-04-19 18:56:38 +0300
commit780f1c176140d04447ecce8466b8d56c77cb9f7a (patch)
tree922b07db3de9574474e11638f91e3e455f50af4d /drivers/iio/imu
parent608d98a2c4a0a72c15fa16ef1542df67afe41fee (diff)
downloadlinux-780f1c176140d04447ecce8466b8d56c77cb9f7a.tar.xz
iio: imu: st_lsm6dsx: drop huge include in sensor-hub driver
st_lsm6dsx is a standalone driver for STM IMU sensors and does not rely on st_sensor common framework, so it does not include st_sensor common definitions. In st_lsm6dsx_shub driver st_sensors.h is used just to introduce the default wai address for LIS3MDL sensor. Drop this largely unconnected include file and introduce the default wai address for LIS3MDL in st_lsm6dsx_ext_dev_settings register map Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r--drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
index 280925dd8edb..947ca3a7dcaf 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
@@ -28,7 +28,6 @@
#include <linux/iio/sysfs.h>
#include <linux/bitfield.h>
-#include <linux/iio/common/st_sensors.h>
#include "st_lsm6dsx.h"
#define ST_LSM6DSX_SLV_ADDR(n, base) ((base) + (n) * 3)
@@ -93,7 +92,7 @@ static const struct st_lsm6dsx_ext_dev_settings st_lsm6dsx_ext_dev_table[] = {
{
.i2c_addr = { 0x1e },
.wai = {
- .addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
+ .addr = 0x0f,
.val = 0x3d,
},
.id = ST_LSM6DSX_ID_MAGN,