mbox series

[v3,0/2] iio: potentiometer: Add driver support for AD5110

Message ID 20210814175607.48399-1-dmugil2000@gmail.com (mailing list archive)
Headers show
Series iio: potentiometer: Add driver support for AD5110 | expand

Message

Mugilraj Dhavachelvan Aug. 14, 2021, 5:55 p.m. UTC
Add dt-bindings and driver support for AD5110, a Nonvolatile 
Digital Potentiometer.

Changes since v2:
 - Drop Redundant blank lines
 - Add missed prefix name
 - Add comma to non terminator line
 - Add missed error code return when ret < 0
 - Explanation for msleep(20)
 - Change to IIO_DEVICE_ATTR_RW()
 - Remove comma for terminator line
 - Drop data->cfg dead code since I'm using probe_new()

Changes since v1: 
 - Drop 'shared_by_type' since it's a single channel
 - Add error check for i2c read/write data bytes
 - Simplified calculation for tolerance
 - Add shift for eeprom wiper pos read
 - Change new custom ABI to existing ABI 
 - Allow top-scale mode by writting max_pos to val 

Mugilraj Dhavachelvan (2):
  dt-bindings: iio: potentiometer: Add AD5110 in trivial-devices
  iio: potentiometer: Add driver support for AD5110

 .../devicetree/bindings/trivial-devices.yaml  |   2 +
 MAINTAINERS                                   |   6 +
 drivers/iio/potentiometer/Kconfig             |  10 +
 drivers/iio/potentiometer/Makefile            |   1 +
 drivers/iio/potentiometer/ad5110.c            | 345 ++++++++++++++++++
 5 files changed, 364 insertions(+)
 create mode 100644 drivers/iio/potentiometer/ad5110.c