Driver for Microchip digital potentiometers, v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peter Rosin <peda@xxxxxxxxxx>

Hi!

This is a new attempt for a driver for these chips. It is a
complete rewrite since the first version which was a dirty
misc driver (plagiarized from another misc driver) that got
shredded in review.

I don't know if I should have added a new unit "ohms", or if
it is ok to only provide "steps"? One could also imagine that
a digital pot can be used to implement a DAC, or something
else, so maybe the actual unit should be somehow configurable?
On the other hand, all of that could in theory be handled
later.

Was it right to add the drivers/iio/pot directory? Should it
have been drivers/iio/potentiometer? What about rheostats
which are very similar? Anyway, I just wanted to say that
I'm not attached to the naming.

This is my first interaction with IIO, please bear with me.

I have admittedly only tested the driver with a MCP4651 chip,
but that one is the biggest in the family...

Changes since v1:
- Make it an IIO driver instead
- Don't convolute the code with big obscure macros
- Inline the bits from mcp4xxx_dpot.h that are actually used
  and drop that file
- Better Changelog

Cheers,
Peter

Peter Rosin (1):
  iio: mcp4xxx_dpot: Driver for Microchip digital potentiometers

 MAINTAINERS                    |    5 +
 drivers/iio/Kconfig            |    1 +
 drivers/iio/Makefile           |    1 +
 drivers/iio/pot/Kconfig        |   20 ++++
 drivers/iio/pot/Makefile       |    6 ++
 drivers/iio/pot/mcp4xxx_dpot.c |  218 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 251 insertions(+)
 create mode 100644 drivers/iio/pot/Kconfig
 create mode 100644 drivers/iio/pot/Makefile
 create mode 100644 drivers/iio/pot/mcp4xxx_dpot.c

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux