Re: [PATCH v2 0/5] iio: humidity: hts221: update probe and logging implementations

From: Andy Shevchenko

Date: Mon Aug 17 2026 - 03:27:38 EST


On Thu, Aug 13, 2026 at 11:31:24PM +0800, Adi Nata wrote:
> HTS221 is an older driver. This series groups a few small modernizations
> based on current development practices.
>
> - Report available values via read_avail()
> - Add a blank line after variable declarations (style)
> - Allow unknown whoami for DT fallback instead of erroring out
> - Use dev_err_probe() in probe paths
> - Reject calibration data that would cause division by zero
>
> No HTS221 hardware was available. Verified with checkpatch --strict and
> builds of hts221, hts221_i2c and hts221_spi. Probe and calibration
> error paths were exercised against i2c-stub with register contents
> pre-loaded via i2cset.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko