Re: [PATCH v2 2/2] iio: pressure: ms5637: Add variant specific temperature compensation

From: Jonathan Cameron

Date: Thu Jun 11 2026 - 12:50:46 EST


On Wed, 10 Jun 2026 21:37:58 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Tue, Jun 09, 2026 at 10:04:58PM -0400, Louis Adamian wrote:
> > Add correct temperature compensation for ms5637-30BA, MS5803-01BA,02BA,
> > 05BA, 14BA, 30BA, MS5837-30BA. The temperature compensation formula is
> > shared across these sensors but with different constants. Add
> > ms_tp_comp_consts to capture these per-device differences. Add pressure
> > variant specific pressure scale variable.
>
> Is there SPI driver? If so, why only i2c is affected?

Excellent question. I went digging.

The library is used by the tsys01 driver which has both SPI and I2C interfaces.
Seems the SPI side never got added. The particular driver being modified here
is I2C only and the modified library function is only used in that driver.

Feels like maybe we should revisit the division of library and driver, but
probably not as part of this series!

I also too a quick look through and with the stuff Andy raised acted on this
looks fine to me.

Jonathan