From: Jonathan Cameron <jic23@kernel.org>
To: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: magnetometer: st_magn_core: enable multiread by default for LIS3MDL
Date: Wed, 21 Jun 2017 20:52:06 +0100 [thread overview]
Message-ID: <20170621205206.0f5416e4@kernel.org> (raw)
In-Reply-To: <20170620174245.6800-1-lorenzo.bianconi@st.com>
On Tue, 20 Jun 2017 19:42:45 +0200
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> 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@st.com>
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,
> },
> {
prev parent reply other threads:[~2017-06-21 19:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-20 17:42 [PATCH] iio: magnetometer: st_magn_core: enable multiread by default for LIS3MDL Lorenzo Bianconi
2017-06-21 19:52 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170621205206.0f5416e4@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).