diff mbox

[2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL

Message ID 20170917152047.12631-3-lorenzo.bianconi@st.com
State New
Headers show

Commit Message

Lorenzo Bianconi Sept. 17, 2017, 3:20 p.m. UTC
Add SPI Serial Interface Mode (SIM) register information to
LIS3MDL magn sensor

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
---
 drivers/iio/magnetometer/st_magn_core.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jonathan Cameron Oct. 10, 2017, 7:43 p.m. UTC | #1
On Sun, 17 Sep 2017 17:20:46 +0200
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote:

> Add SPI Serial Interface Mode (SIM) register information to
> LIS3MDL magn sensor
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Applied.
> ---
>  drivers/iio/magnetometer/st_magn_core.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c
> index 8745686f233c..72f6d1335a04 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,
>  	},

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c
index 8745686f233c..72f6d1335a04 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,
 	},