From: Jonathan Cameron <jic23@cam.ac.uk>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-iio@vger.kernel.org,
device-drivers-devel@blackfin.uclinux.org, drivers@analog.com
Subject: Re: [PATCH 5/5] staging:iio:dac:ad5064: Add AD5025/AD5045/AD5065 support
Date: Thu, 16 Feb 2012 14:40:38 +0000 [thread overview]
Message-ID: <4F3D1566.4050101@cam.ac.uk> (raw)
In-Reply-To: <1329389351-21584-5-git-send-email-lars@metafoo.de>
On 2/16/2012 10:49 AM, Lars-Peter Clausen wrote:
> The AD5025/AD5045/AD5065 are identical to the AD5024/AD5044/AD5064 excpet that
except
> they have 2 instead of 4 DAC channels.
>
> Signed-off-by: Lars-Peter Clausen<lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
> ---
> drivers/staging/iio/dac/Kconfig | 7 ++++---
> drivers/staging/iio/dac/ad5064.c | 27 ++++++++++++++++++++++++---
> 2 files changed, 28 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
> index 4d10537..40ab599 100644
> --- a/drivers/staging/iio/dac/Kconfig
> +++ b/drivers/staging/iio/dac/Kconfig
> @@ -4,11 +4,12 @@
> menu "Digital to analog converters"
>
> config AD5064
> - tristate "Analog Devices AD5064/64-1/44/24, AD5628/48/68, AD5666 DAC driver"
> + tristate "Analog Devices AD5064/64-1/65/44/45/24/25, AD5628/48/68, AD5666 DAC driver"
> depends on SPI
> help
> - Say yes here to build support for Analog Devices AD5064, AD5064-1, AD5044,
> - AD5024, AD5628, AD5648, AD5666, AD5668 Digital to Analog Converter.
> + Say yes here to build support for Analog Devices AD5024, AD5025, AD5044,
> + AD5045, AD5064, AD5064-1, AD5065, AD5628, AD5648, AD5666, AD5668 Digital
> + to Analog Converter.
>
> To compile this driver as a module, choose M here: the
> module will be called ad5064.
> diff --git a/drivers/staging/iio/dac/ad5064.c b/drivers/staging/iio/dac/ad5064.c
> index 2457182..65a9128 100644
> --- a/drivers/staging/iio/dac/ad5064.c
> +++ b/drivers/staging/iio/dac/ad5064.c
> @@ -1,6 +1,6 @@
> /*
> - * AD5064, AD5064-1, AD5044, AD5024, AD5628, AD5648, AD5666, AD5668
> - * Digital to analog converters driver
> + * AD5024, AD5025, AD5044, AD5045, AD5064, AD5064-1, AD5065, AD5628, AD5648,
> + * AD5666, AD5668 Digital to analog converters driver
> *
> * Copyright 2011 Analog Devices Inc.
> *
> @@ -94,9 +94,12 @@ struct ad5064_state {
>
> enum ad5064_type {
> ID_AD5024,
> + ID_AD5025,
> ID_AD5044,
> + ID_AD5045,
> ID_AD5064,
> ID_AD5064_1,
> + ID_AD5065,
> ID_AD5628_1,
> ID_AD5628_2,
> ID_AD5648_1,
> @@ -163,16 +166,31 @@ static const struct ad5064_chip_info ad5064_chip_info_tbl[] = {
> .channels = ad5024_channels,
> .num_channels = 4,
> },
> + [ID_AD5025] = {
> + .shared_vref = false,
> + .channels = ad5024_channels,
> + .num_channels = 2,
> + },
> [ID_AD5044] = {
> .shared_vref = false,
> .channels = ad5044_channels,
> .num_channels = 4,
> },
> + [ID_AD5045] = {
> + .shared_vref = false,
> + .channels = ad5044_channels,
> + .num_channels = 2,
> + },
> [ID_AD5064] = {
> .shared_vref = false,
> .channels = ad5064_channels,
> .num_channels = 4,
> },
> + [ID_AD5065] = {
> + .shared_vref = false,
> + .channels = ad5064_channels,
> + .num_channels = 2,
> + },
> [ID_AD5064_1] = {
> .shared_vref = true,
> .channels = ad5064_channels,
> @@ -516,8 +534,11 @@ static int __devexit ad5064_remove(struct spi_device *spi)
>
> static const struct spi_device_id ad5064_id[] = {
> {"ad5024", ID_AD5024},
> + {"ad5025", ID_AD5025},
> {"ad5044", ID_AD5044},
> + {"ad5045", ID_AD5045},
> {"ad5064", ID_AD5064},
> + {"ad5065", ID_AD5065},
> {"ad5064-1", ID_AD5064_1},
> {"ad5628-1", ID_AD5628_1},
> {"ad5628-2", ID_AD5628_2},
> @@ -544,5 +565,5 @@ static struct spi_driver ad5064_driver = {
> module_spi_driver(ad5064_driver);
>
> MODULE_AUTHOR("Lars-Peter Clausen<lars@metafoo.de>");
> -MODULE_DESCRIPTION("Analog Devices AD5064/64-1/44/24, AD5628/48/68, AD5666 DAC");
> +MODULE_DESCRIPTION("Analog Devices AD5024/25/44/45/64/64-1/65, AD5628/48/68, AD5666 DAC");
> MODULE_LICENSE("GPL v2");
next prev parent reply other threads:[~2012-02-16 14:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 10:49 [PATCH 1/5] staging:iio: Add extended IIO channel info Lars-Peter Clausen
2012-02-16 10:49 ` [PATCH 2/5] staging:iio:dac:ad5064: Convert to extended channel info attributes Lars-Peter Clausen
2012-02-16 15:09 ` Jonathan Cameron
2012-02-16 10:49 ` [PATCH 3/5] staging:iio:dac:ad5064: Add AD5628/AD5648/AD5668 support Lars-Peter Clausen
2012-02-16 15:13 ` Jonathan Cameron
2012-02-16 10:49 ` [PATCH 4/5] staging:iio:dac:ad5064: Add AD5666 support Lars-Peter Clausen
2012-02-16 14:39 ` Jonathan Cameron
2012-02-16 10:49 ` [PATCH 5/5] staging:iio:dac:ad5064: Add AD5025/AD5045/AD5065 support Lars-Peter Clausen
2012-02-16 14:40 ` Jonathan Cameron [this message]
2012-02-16 14:35 ` [PATCH 1/5] staging:iio: Add extended IIO channel info Jonathan Cameron
2012-02-16 15:02 ` Lars-Peter Clausen
2012-02-16 15:04 ` Jonathan Cameron
2012-02-16 15:21 ` Lars-Peter Clausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3D1566.4050101@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=drivers@analog.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.