mbox series

[v2,0/2] thermal: thermal-generic-adc: add temp sensor function

Message ID 20250219082817.56339-1-clamor95@gmail.com (mailing list archive)
Headers show
Series thermal: thermal-generic-adc: add temp sensor function | expand

Message

Svyatoslav Ryhel Feb. 19, 2025, 8:28 a.m. UTC
Add IIO sensor cell to thermal-generic-adc, which would benefit
devices that use adc sensors to detect temperature and need a
custom conversion table.

---
Changes on switching from v1 to v2:
- documented #iio-channel-cells property
- switched to IIO_CHAN_INFO_PROCESSED
---

Svyatoslav Ryhel (2):
  dt-bindings: thermal: generic-adc: Add optional io-channel-cells
    property
  thermal: thermal-generic-adc: add temperature sensor channel

 .../bindings/thermal/generic-adc-thermal.yaml |  4 ++
 drivers/thermal/thermal-generic-adc.c         | 54 ++++++++++++++++++-
 2 files changed, 57 insertions(+), 1 deletion(-)