Re: [PATCH v2 5/7] iio:st_pressure:lps22hb: open drain support

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

 



On 27/06/16 11:38, Gregor Boirie wrote:
> Add support for open drain interrupt line.
> 
> Signed-off-by: Gregor Boirie <gregor.boirie@xxxxxxxxxx>
Applied.  Thanks
> ---
>  drivers/iio/pressure/st_pressure_core.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
> index ea8241f..70230a1 100644
> --- a/drivers/iio/pressure/st_pressure_core.c
> +++ b/drivers/iio/pressure/st_pressure_core.c
> @@ -213,6 +213,8 @@
>  #define ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK	0x08
>  #define ST_PRESS_LPS22HB_IHL_IRQ_ADDR		0x12
>  #define ST_PRESS_LPS22HB_IHL_IRQ_MASK		0x80
> +#define ST_PRESS_LPS22HB_OD_IRQ_ADDR		0x12
> +#define ST_PRESS_LPS22HB_OD_IRQ_MASK		0x40
>  #define ST_PRESS_LPS22HB_MULTIREAD_BIT		true
>  
>  static const struct iio_chan_spec st_press_1_channels[] = {
> @@ -511,6 +513,9 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
>  			.mask_int2 = ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK,
>  			.addr_ihl = ST_PRESS_LPS22HB_IHL_IRQ_ADDR,
>  			.mask_ihl = ST_PRESS_LPS22HB_IHL_IRQ_MASK,
> +			.addr_od = ST_PRESS_LPS22HB_OD_IRQ_ADDR,
> +			.mask_od = ST_PRESS_LPS22HB_OD_IRQ_MASK,
> +			.addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR,
>  		},
>  		.multi_read_bit = ST_PRESS_LPS22HB_MULTIREAD_BIT,
>  	},
> 

--
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