Re: [PATCH 7/7] staging:iio:dac: Add AD5380 driver

From: Lars-Peter Clausen
Date: Wed Nov 16 2011 - 11:55:38 EST


On 11/16/2011 04:28 PM, Lars-Peter Clausen wrote:
> This patch adds support for the Analog Devices D5380, AD5381,
> AD5382, AD5383, AD5384, AD5390, AD5391, AD5392 multi-channel
> Digital to Analog Converters.
>
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
>
> ---
> There should be no compile time dependencies to the regmap patches earlier in
> this series, so this patch can be merged independently of it.
> ---
> drivers/staging/iio/dac/Kconfig | 11 +
> drivers/staging/iio/dac/Makefile | 1 +
> drivers/staging/iio/dac/ad5380.c | 669 ++++++++++++++++++++++++++++++++++++++
> 3 files changed, 681 insertions(+), 0 deletions(-)
> create mode 100644 drivers/staging/iio/dac/ad5380.c
>
> diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
> index a71defb..aaa6d46 100644
> --- a/drivers/staging/iio/dac/Kconfig
> +++ b/drivers/staging/iio/dac/Kconfig
> @@ -24,6 +24,17 @@ config AD5360
> To compile this driver as module choose M here: the module will be called
> ad5360.
>
> +config AD5380
> + tristate "Analog Devices AD5380/81/82/83/84/90/91/92 DAC driver"
> + depends on (SPI_MASTER || I2C)

Somehow the 'select REGMAP_I2C if I2C' and 'select REGMAP_SPI if SPI_MASTER'
didn't made it into this patch. I'll fix it for v2.

> + help
> + Say yes here to build support for Analog Devices AD5380, AD5381,
> + AD5382, AD5383, AD5384, AD5390, AD5391, AD5392 multi-channel
> + Digital to Analog Converters (DAC).
> +
> + To compile this driver as module choose M here: the module will be called
> + ad5380.
> +
> config AD5421
> tristate "Analog Devices AD5421 DAC driver"
> depends on SPI
> diff --git a/drivers/staging/iio/dac/Makefile b/drivers/staging/iio/dac/Makefile
> index e75b0c8..840e94e 100644
> --- a/drivers/staging/iio/dac/Makefile
> +++ b/drivers/staging/iio/dac/Makefile
> @@ -3,6 +3,7 @@
> #
>
> obj-$(CONFIG_AD5360) += ad5360.o
> +obj-$(CONFIG_AD5380) += ad5380.o
> obj-$(CONFIG_AD5421) += ad5421.o
> obj-$(CONFIG_AD5624R_SPI) += ad5624r_spi.o
> obj-$(CONFIG_AD5064) += ad5064.o
> [...]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/