Add support for Microchip MCP41xxx/42xxx potentiometers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 5 repliesIn review
- v22 patches 7 repliesSuperseded
- v11 patch 11 repliesSuperseded
Changes in v3 from the cover letter
- Get device names from mcp41010_cfg struct instead of spi device as suggested by Jonathan Cameron.
- Refactor code structure in mcp41010_write_raw() as recommended by Jonathan Cameron.
- Only call spi_get_device_id() when necessary to load config as suggested by Slawomir Stepien.
- In mcp41010_probe(), return err to make static checkers happy as recommended by Jonathan Cameron.
- Edit mcp41010_match struct members to fit on one line as suggested by Slawomir Stepien.
- In device tree binding documentation, add company name to example as pointed out by Slawomir Stepien.
- In device tree binding documentation, remove mcp41010 prefix from example as suggested by Jonathan Cameron.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: iio: potentiometer: Add Microchip MCP41xxx/42xxxDocumentation/ | +29 | 1 reply | |
| 2/2 | iio: potentiometer: Add driver for Microchip MCP41xxx/42xxxdrivers/ drivers/ drivers/ | +217 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] Add support for Microchip MCP41xxx/42xxx potentiometers
Hello all,
This patch series adds device-tree documentation and driver support for the Microchip MCP41xxx/42xxx family of digital potentiometers.
Changes in v3:
- Get device names from mcp41010_cfg struct instead of spi device as suggested by Jonathan Cameron.
- Refactor code structure in mcp41010_write_raw() as recommended by Jonathan Cameron.
- Only call spi_get_device_id() when necessary to load config as suggested by Slawomir Stepien.
- In mcp41010_probe(), return err to make static checkers happy as recommended by Jonathan Cameron.
- Edit mcp41010_match struct members to fit on one line as suggested by Slawomir Stepien.
- In device tree binding documentation, add company name to example as pointed out by Slawomir Stepien.
- In device tree binding documentation, remove mcp41010 prefix from example as suggested by Jonathan Cameron.
Changes in v2:
- Move device tree binding documentation to separate commit as pointed out by Himanshu Jha.
- Remove explicit '= 0' initialization in mcp41010_type enum as recommended by Himanshu Jha.
- Change MCP41010_WRITE from (0x01 << 4) to BIT(4) as recommended by Himanshu Jha.
- Use of_device_get_match_data() to load configuration as recommended by Peter Rosin.
- Rename MCP41010_WIPER_ENABLE to MCP41010_WIPER_CHANNEL as suggested by Peter Rosin.
- Remove CONFIG_OF build protections as recommended by Jonathan Cameron.
- Remove of_match_ptr wrapper from mcp41010_driver struct as recommended by Jonathan Cameron.
- Remove blank line in mcp41010.c intro as recommended by Jonathan Cameron.
Chris Coffey (2):
dt-bindings: iio: potentiometer: Add Microchip MCP41xxx/42xxx
iio: potentiometer: Add driver for Microchip MCP41xxx/42xxx
.../bindings/iio/potentiometer/mcp41010.txt | 29 +++ drivers/iio/potentiometer/Kconfig | 12 ++ drivers/iio/potentiometer/Makefile | 1 + drivers/iio/potentiometer/mcp41010.c | 204 +++++++++++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt create mode 100644 drivers/iio/potentiometer/mcp41010.c
Signature · 1 line
2.11.0