All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: linux-iio@vger.kernel.org, gregor.boirie@parrot.com,
	denis.ciocca@st.com, lorenzo.bianconi@st.com
Subject: Re: [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration
Date: Sat, 12 Aug 2017 13:48:30 +0100	[thread overview]
Message-ID: <20170812134830.54721902@archlinux> (raw)
In-Reply-To: <20170811194414.20741-3-lorenzo.bianconi@st.com>

On Fri, 11 Aug 2017 21:44:14 +0200
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote:

> Remove int2 configuration parameter for LIS3DH, LSM303DLHC, LSM330D,
> LSM330DL, LSM330DLC, LSM303AGR, LIS2DH12 and LNG2DM since these devices
> export just int1 as data-ready line
> 
> Fixes: 23cde4d65cc7 (iio: Added platform data to select the DRDY pin)
> Fixes: dcdb0a78cab3 (iio: accel: st_accel: add support to lng2dm)
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/iio/accel/st_accel_core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c
> index 1e0eea110fa9..752856b3a849 100644
> --- a/drivers/iio/accel/st_accel_core.c
> +++ b/drivers/iio/accel/st_accel_core.c
> @@ -161,7 +161,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
>  		.drdy_irq = {
>  			.addr = 0x22,
>  			.mask_int1 = 0x10,
> -			.mask_int2 = 0x08,
> +			.mask_int2 = 0x00,
>  			.addr_ihl = 0x25,
>  			.mask_ihl = 0x02,
>  			.addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR,
> @@ -637,7 +637,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
>  		.drdy_irq = {
>  			.addr = 0x22,
>  			.mask_int1 = 0x10,
> -			.mask_int2 = 0x08,
> +			.mask_int2 = 0x00,
>  			.addr_ihl = 0x25,
>  			.mask_ihl = 0x02,
>  			.addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR,


      reply	other threads:[~2017-08-12 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 19:44 [PATCH 0/2] iio: st_sensors: fix data-ready pin configuration Lorenzo Bianconi
2017-08-11 19:44 ` [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H Lorenzo Bianconi
2017-08-12 12:48   ` Jonathan Cameron
2017-08-11 19:44 ` [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration Lorenzo Bianconi
2017-08-12 12:48   ` 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=20170812134830.54721902@archlinux \
    --to=jic23@kernel.org \
    --cc=denis.ciocca@st.com \
    --cc=gregor.boirie@parrot.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=lorenzo.bianconi83@gmail.com \
    --cc=lorenzo.bianconi@st.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.