Skip to content

Convert twl4030-madc to IIO API and add DT support

Sebastian Reichel linux-arm-kernel linux-devicetree linux-iio lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/29 patches 13 repliesIn review
  2. v2 posting 1/22 patches 7 repliesSuperseded
  3. v19 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mfd: twl4030-madc: Use managed resourcesdrivers/mfd/twl4030-madc.c+6 -92 replies
2/9mfd: twl4030-madc: Add DT support and convert to IIO frameworkdrivers/mfd/twl4030-madc.c+116 -103 replies
3/9mfd: twl4030-madc: Cleanup driverdrivers/mfd/twl4030-madc.c include/linux/i2c/twl4030-madc.h+61 -662 replies
4/9mfd: twl-core: Add twl_i2c_read/write_u16include/linux/i2c/twl.h+12 -00 replies
5/9mfd: twl4030-madc: Use twl_i2c_read/write_u16 for 16 bit registersdrivers/mfd/twl4030-madc.c+8 -310 replies
6/9Documentation: DT: Document twl4030-madc bindingDocumentation/devicetree/bindings/iio/adc/twl4030-madc.txt+24 -01 reply
7/9mfd: twl4030-madc: Move driver to drivers/iio/adcdrivers/iio/adc/Kconfig drivers/iio/adc/Makefile drivers/iio/adc/twl4030-madc.c +2 more+11 -110 replies
8/9iio: documentation: Add ABI documentation for *_mean_rawDocumentation/ABI/testing/sysfs-bus-iio+8 -01 reply
9/9iio: inkern: add iio_read_channel_average_rawdrivers/iio/inkern.c include/linux/iio/consumer.h+31 -01 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchLee JonesJonathan CameronPavel Machek
1/9A-b A-b R-b
2/9R-b
3/9A-b A-b R-b
4/9A-b A-b
5/9A-b A-b
6/9A-b
7/9A-b A-b
8/9A-b
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCHv2 0/9] Convert twl4030-madc to IIO API and add DT support

Hi,

This is PATCHv2 for converting twl4030-madc to the IIO API and adding DT support. The plan is to remove the private twl4030-madc API once all users have been removed or converted to the IIO API. The patchset compiles and has been tested on my Nokia N900.

Changes since PATCHv1 [0]:
* Fix warning about unused variable
* Add IIO_CHAN_INFO_PROCESSED to all channels, since voltage channels also need some postprocessing

TODO:
* Wait for feedback from DT binding maintainers
* Wait for feedback from Marek Belisko, who is testing the changes with twl4030-madc-battery driver on GTA04

[0] https://lkml.org/lkml/2014/3/1/105

-- Sebastian

Sebastian Reichel (9):
mfd: twl4030-madc: Use managed resources
mfd: twl4030-madc: Add DT support and convert to IIO framework
mfd: twl4030-madc: Cleanup driver
mfd: twl-core: Add twl_i2c_read/write_u16
mfd: twl4030-madc: Use twl_i2c_read/write_u16 for 16 bit registers
Documentation: DT: Document twl4030-madc binding
mfd: twl4030-madc: Move driver to drivers/iio/adc
iio: documentation: Add ABI documentation for *_mean_raw
iio: inkern: add iio_read_channel_average_raw

 Documentation/ABI/testing/sysfs-bus-iio            |   8 +
 .../devicetree/bindings/iio/adc/twl4030-madc.txt   |  24 ++
 drivers/iio/adc/Kconfig                            |  10 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/{mfd => iio/adc}/twl4030-madc.c            | 299 +++++++++++++--------
 drivers/iio/inkern.c                               |  18 ++
 drivers/mfd/Kconfig                                |  10 -
 drivers/mfd/Makefile                               |   1 -
 include/linux/i2c/twl.h                            |  12 +
 include/linux/i2c/twl4030-madc.h                   |   2 +-
 include/linux/iio/consumer.h                       |  13 +
 11 files changed, 274 insertions(+), 124 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt
 rename drivers/{mfd => iio/adc}/twl4030-madc.c (75%)
Signature · 1 line
1.9.0