Skip to content

iio: adc: mcp320x: Add triggered buffer support

Vincent Whitchurch linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 11 repliesIn review
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Replace device_index rx switch with callbacks in chip_info
- Replace device_index tx switch with computation based
on number of channels.
- Use conv_time instead of device_index switch when initializing conv_msg.
- Keep includes in alphabetical order with iio includes in a separate group
- Replace diff_off with scan_index as parameter to macro
- Remove reformatting of macros which makes the real change hard to spot

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: adc: mcp320x: use callbacks for RX conversiondrivers/iio/adc/mcp320x.c+67 -486 replies
2/5iio: adc: mcp320x: remove device_index check for TXdrivers/iio/adc/mcp320x.c+23 -231 reply
3/5iio: adc: mcp320x: use conv_time instead of device_index switchdrivers/iio/adc/mcp320x.c+1 -51 reply
4/5iio: adc: mcp320x: use device managed functionsdrivers/iio/adc/mcp320x.c+10 -202 replies
5/5iio: adc: mcp320x: add triggered buffer supportdrivers/iio/adc/Kconfig drivers/iio/adc/mcp320x.c+82 -201 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] iio: adc: mcp320x: Add triggered buffer support

This series makes some suggested cleanups and then adds triggered buffer support to the mcp320x ADC driver.

v2:
- Replace device_index rx switch with callbacks in chip_info
- Replace device_index tx switch with computation based
on number of channels.
- Use conv_time instead of device_index switch when initializing conv_msg.
- Keep includes in alphabetical order with iio includes in a separate group
- Replace diff_off with scan_index as parameter to macro
- Remove reformatting of macros which makes the real change hard to spot

Axel Jonsson (1):
iio: adc: mcp320x: add triggered buffer support

Vincent Whitchurch (4):
iio: adc: mcp320x: use callbacks for RX conversion
iio: adc: mcp320x: remove device_index check for TX
iio: adc: mcp320x: use conv_time instead of device_index switch
iio: adc: mcp320x: use device managed functions

 drivers/iio/adc/Kconfig   |   2 +
 drivers/iio/adc/mcp320x.c | 297 +++++++++++++++++++++++---------------
 2 files changed, 183 insertions(+), 116 deletions(-)
Signature · 1 line
2.34.1