From: Lorenzo Bianconi Date: Sun, 17 Sep 2017 15:20:46 +0000 (+0200) Subject: iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL X-Git-Tag: v5.15~10046^2~55^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9915c19056cb2923d36c2f048467aa26491eed82;p=platform%2Fkernel%2Flinux-starfive.git iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Add SPI Serial Interface Mode (SIM) register information to LIS3MDL magn sensor Signed-off-by: Lorenzo Bianconi Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 8745686..72f6d13 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x22, + .value = BIT(2), + }, .multi_read_bit = true, .bootime = 2, },