Re: [PATCH v4 2/2] iio: pressure: add Honeywell ABP2 driver

From: Jonathan Cameron

Date: Wed Dec 31 2025 - 13:37:25 EST


On Mon, 29 Dec 2025 17:01:29 +0200
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Sun, Dec 07, 2025 at 08:00:48AM +0200, Petre Rodan wrote:
> > Adds driver for digital Honeywell ABP2 series of board mount
> > pressure and temperature sensors.
> >
> > This driver covers 113 different pressure ranges and units on
> > both i2c and SPI buses.
> >
> > The communication protocol involves sending two simple commands
> > to the sensor and there is no register access or a memory map.
> > For this reason the regmap API was not used.
> >
> > The i2c address is hardcoded and depends on the part number.
> >
> > Optional end of conversion interrupt control is present on the
> > i2c variants of the chips.
> > The EOC can also be defined for the SPI variants if a non-ABP2
> > but compatible chip is to be driven.
> >
> > Tested on two sensors (ABP2MRRT001PDSA3 and ABP2DANT001BA2A3).
>
> LGTM, one minor thing below,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
> ...
>
> > + ret = devm_request_irq(dev, irq, abp2_eoc_handler, IRQF_ONESHOT,
> > + dev_name(dev), data);
> > + if (ret)
>
> > + return dev_err_probe(dev, ret, "request irq %d failed\n", data->irq);
>
> Just
>
> return ret;
>
> as above call already prints an error message.
>
I've had this one queued for a while now, so Petre, if you don't mind
spinning a patch on top to drop that print that would be great.

Jonathan

> > + }
>