From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:48806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbdHLMs6 (ORCPT ); Sat, 12 Aug 2017 08:48:58 -0400 Date: Sat, 12 Aug 2017 13:48:30 +0100 From: Jonathan Cameron To: Lorenzo Bianconi 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 Message-ID: <20170812134830.54721902@archlinux> In-Reply-To: <20170811194414.20741-3-lorenzo.bianconi@st.com> References: <20170811194414.20741-1-lorenzo.bianconi@st.com> <20170811194414.20741-3-lorenzo.bianconi@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On Fri, 11 Aug 2017 21:44:14 +0200 Lorenzo Bianconi 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 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,