summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ad5755.c
Commit message (Collapse)AuthorAgeFilesLines
* iio: dac/ad5755: signedness bug in ad5755_setup_pdata()Dan Carpenter2012-09-221-1/+1
| | | | | | | | We need "ret" to be signed for the error handling to work correctly. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* iio:dac: Add ad5755 driverLars-Peter Clausen2012-09-171-0/+650
This patch adds support for the AD5755, AD5755-1, AD5757, AD5735, AD5737 16 and 14 bit quad-channel DACs. The AD5757/AD5737 only have current outputs, but for the AD5755/AD5757 each of the outputs can be configured to either be a voltage or a current output. We only allow to configure this at device probe time since usually this needs to match the external circuitry and should not be changed on the fly. A few trivial formatting changes on merge. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>