iio: add mcp4725 I2C DAC driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Fri, 8 Jun 2012 16:06:45 +0000 (18:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 21:50:51 +0000 (14:50 -0700)
commitcf35ad61aca2c0c8983fa1e140c901f6588aba7e
tree238c036e037638e3a9db55470d81fccdda6f9ca4
parent1a135d1ab5e3122ab2a50cbbdb9cb1504c1f421f
iio: add mcp4725 I2C DAC driver

v5:
* fix warnings (Jonathan Cameron)

v4:
* remove unused indio_dev pointer in mcp4725_data (Jonathan Cameron)
* use u16 instead of unsigned short in mcp4725_data (Jonathan Cameron)
* #include mcp4725.h from linux/iio/dac/

v3:
* move from staging to drivers/iio
* switch to chan_spec
* dev_get_drvdata() -> dev_to_iio_dev()
* annotate probe() and remove() with __devinit and __devexit

v2 (based on comments from Jonathan Cameron and Lars-Peter Clausen):
* did NOT switch to chan_spec yet
* rebase to staging-next tree, update iio header locations
* dropped dac.h #include, not needed
* strict_strtol() -> kstrtol()
* call iio_device_unregister() in remove()
* everything in one patch

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dac/Kconfig
drivers/iio/dac/Makefile
drivers/iio/dac/mcp4725.c [new file with mode: 0644]
include/linux/iio/dac/mcp4725.h [new file with mode: 0644]