linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Driver for Microchip digital potentiometers, v2
@ 2015-09-21 21:18 Peter Rosin
  2015-09-21 21:18 ` [PATCH v2] iio: mcp4xxx_dpot: Driver for Microchip digital potentiometers Peter Rosin
  2015-09-22  8:16 ` Driver for Microchip digital potentiometers, v2 Lars-Peter Clausen
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Rosin @ 2015-09-21 21:18 UTC (permalink / raw)
  To: linux-iio
  Cc: Peter Rosin, Greg Kroah-Hartman, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald, linux-kernel

From: Peter Rosin <peda@axentia.se>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-22 12:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 21:18 Driver for Microchip digital potentiometers, v2 Peter Rosin
2015-09-21 21:18 ` [PATCH v2] iio: mcp4xxx_dpot: Driver for Microchip digital potentiometers Peter Rosin
2015-09-22  7:27   ` Crt Mori
2015-09-22  7:42   ` Daniel Baluta
2015-09-22 12:10   ` Andreas Dannenberg
2015-09-22  8:16 ` Driver for Microchip digital potentiometers, v2 Lars-Peter Clausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).