All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] iio: humidity: hts221: update probe and logging implementations
@ 2026-08-08  9:00 Adi Nata
  2026-08-08  9:00 ` [PATCH 1/5] iio: humidity: hts221: report available values via read_avail() Adi Nata
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Adi Nata @ 2026-08-08  9:00 UTC (permalink / raw)
  To: lorenzo, jic23, dlechner, nuno.sa, andy, linux-iio, linux-kernel
  Cc: linux-kernel-mentees, Adi Nata

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.

Adi Nata (5):
  iio: humidity: hts221: report available values via read_avail()
  iio: humidity: hts221: Add a blank line after variable declarations
  iio: humidity: hts221: Allow unknown whoami for DT fallback
  iio: humidity: hts221: use dev_err_probe() in probe paths
  iio: humidity: hts221: fix division by zero in calibration parsing

 drivers/iio/humidity/hts221_buffer.c |   1 +
 drivers/iio/humidity/hts221_core.c   | 171 ++++++++++++---------------
 drivers/iio/humidity/hts221_i2c.c    |   8 +-
 drivers/iio/humidity/hts221_spi.c    |   8 +-
 4 files changed, 85 insertions(+), 103 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-08-10  8:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-08  9:00 [PATCH 0/5] iio: humidity: hts221: update probe and logging implementations Adi Nata
2026-08-08  9:00 ` [PATCH 1/5] iio: humidity: hts221: report available values via read_avail() Adi Nata
2026-08-10  0:09   ` Jonathan Cameron
2026-08-08  9:00 ` [PATCH 2/5] iio: humidity: hts221: Add a blank line after variable declarations Adi Nata
2026-08-10  8:40   ` Andy Shevchenko
2026-08-08  9:00 ` [PATCH 3/5] iio: humidity: hts221: Allow unknown whoami for DT fallback Adi Nata
2026-08-10  8:43   ` Andy Shevchenko
2026-08-08  9:00 ` [PATCH 4/5] iio: humidity: hts221: use dev_err_probe() in probe paths Adi Nata
2026-08-10  8:45   ` Andy Shevchenko
2026-08-08  9:00 ` [PATCH 5/5] iio: humidity: hts221: fix division by zero in calibration parsing Adi Nata

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.