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

From: Andy Shevchenko

Date: Mon Dec 29 2025 - 10:01:44 EST


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.

> + }

--
With Best Regards,
Andy Shevchenko