Skip to content

iio: adc: ti-ads1015: fixes, cleanups, and threshold event support

Akinobu Mita linux-iio 3 versions – Applied

Status from this message: Applied to the fixes-togreg branch of iio.git and marked

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 9 repliesApplied
  2. v211 patches 21 repliesApplied
  3. v18 patches 12 repliesSuperseded

Changes in v3 from the cover letter

- Add an error checking for conv register read in interrupt handler
- Fix comparator polarity field setting in config register

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/11iio: adc: ti-ads1015: fix incorrect data rate setting updatedrivers/iio/adc/ti-ads1015.c+10 -171 reply
2/11iio: adc: ti-ads1015: fix scale information for ADS1115drivers/iio/adc/ti-ads1015.c+24 -241 reply
3/11iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not setdrivers/iio/adc/ti-ads1015.c+7 -01 reply
4/11iio: adc: ti-ads1015: avoid getting stale result after runtime resumedrivers/iio/adc/ti-ads1015.c+16 -21 reply
5/11iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacksdrivers/iio/adc/ti-ads1015.c+1 -11 reply
6/11iio: adc: ti-ads1015: add adequate wait time to get correct conversiondrivers/iio/adc/ti-ads1015.c+19 -121 reply
7/11iio: adc: ti-ads1015: remove unnecessary config register updatedrivers/iio/adc/ti-ads1015.c+4 -140 replies
8/11iio: adc: ti-ads1015: add helper to set conversion modedrivers/iio/adc/ti-ads1015.c+11 -120 replies
9/11iio: adc: ti-ads1015: use devm_iio_triggered_buffer_setupdrivers/iio/adc/ti-ads1015.c+5 -120 replies
10/11iio: adc: ti-ads1015: use iio_device_claim_direct_mode()drivers/iio/adc/ti-ads1015.c+7 -80 replies
11/11iio: adc: ti-ads1015: add threshold event supportdrivers/iio/adc/ti-ads1015.c+406 -23 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/11] iio: adc: ti-ads1015: fixes, cleanups, and threshold event support

This series contains some fixes and cleanups, and a threshold event support for ti-ads1015 driver.

The first six patches are bug fixes, next four are cleanups, and the last one adds support threshold event.

Changes from v2 (All changes are done in the last patch)
- Add an error checking for conv register read in interrupt handler
- Fix comparator polarity field setting in config register

Changes from v1
- Split the patch "enable conversion when CONFIG_PM is not set" into a pure fix and a cleanup
- Add new patch "don't return invalid value from buffer setup callbacks"
- Add new patch "add adequate wait time to get correct conversion"
- Support traditional comparator mode in addition to window comparator mode, add a comment for default threshold settings, and allow setting the state that has already been set in threshold event support patch

Akinobu Mita (11):
iio: adc: ti-ads1015: fix incorrect data rate setting update
iio: adc: ti-ads1015: fix scale information for ADS1115
iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set
iio: adc: ti-ads1015: avoid getting stale result after runtime resume
iio: adc: ti-ads1015: don't return invalid value from buffer setup
callbacks
iio: adc: ti-ads1015: add adequate wait time to get correct conversion
iio: adc: ti-ads1015: remove unnecessary config register update
iio: adc: ti-ads1015: add helper to set conversion mode
iio: adc: ti-ads1015: use devm_iio_triggered_buffer_setup
iio: adc: ti-ads1015: use iio_device_claim_direct_mode()
iio: adc: ti-ads1015: add threshold event support

 drivers/iio/adc/ti-ads1015.c | 594 ++++++++++++++++++++++++++++++++++++-------
 1 file changed, 500 insertions(+), 94 deletions(-)
Cc Daniel Baluta <[email protected]>
Cc Jonathan Cameron <[email protected]>
Signature · 1 line
2.7.4