Re: [PATCH] iio: magnetometer: st_magn_core: enable multiread by default for LIS3MDL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 20 Jun 2017 19:42:45 +0200
Lorenzo Bianconi <lorenzo.bianconi83@xxxxxxxxx> wrote:

> Enable multiread by default for LIS3MDL since using I2C interface
> the subaddr Msb is used to automatically increase the slave address
> during multiple data read/write. In the same way, using SPI interface,
> bit 1 in register address is used to enable auto-increment of the slave
> address in multiple read/write.
> 
> Fixes: 872e79add756 (iio:magn: Add STMicroelectronics magn driver)
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@xxxxxx>
Applied to the togreg branch of iio.git and pushed out as testing.

Thanks,

Jonathan
> ---
>  drivers/iio/magnetometer/st_magn_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c
> index 8e1b0861fbe4..3573636bad8e 100644
> --- a/drivers/iio/magnetometer/st_magn_core.c
> +++ b/drivers/iio/magnetometer/st_magn_core.c
> @@ -315,7 +315,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
>  				},
>  			},
>  		},
> -		.multi_read_bit = false,
> +		.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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux