From: Jonathan Cameron <jic23@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Cameron <jic23@cam.ac.uk>,
linux-iio@vger.kernel.org,
device-drivers-devel@blackfin.uclinux.org, drivers@analog.com
Subject: Re: [PATCH 8/8] staging:iio:dac:ad5446: Add support for the AD5662
Date: Tue, 24 Apr 2012 09:10:41 +0100 [thread overview]
Message-ID: <4F966001.5080708@kernel.org> (raw)
In-Reply-To: <1335203497-11041-8-git-send-email-lars@metafoo.de>
On 4/23/2012 6:51 PM, Lars-Peter Clausen wrote:
> The AD5662 is compatible to the AD5660, but uses an external reference instead
> of an internal.
Ah, I wondered why you were going though this driver with such a fine
toothed comb!
>
> Signed-off-by: Lars-Peter Clausen<lars@metafoo.de>
> ---
> drivers/staging/iio/dac/Kconfig | 2 +-
> drivers/staging/iio/dac/ad5446.c | 5 +++++
> drivers/staging/iio/dac/ad5446.h | 1 +
> 3 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
> index a57803a..1a2be98 100644
> --- a/drivers/staging/iio/dac/Kconfig
> +++ b/drivers/staging/iio/dac/Kconfig
> @@ -56,7 +56,7 @@ config AD5624R_SPI
> AD5664R converters (DAC). This driver uses the common SPI interface.
>
> config AD5446
> - tristate "Analog Devices AD5444/6, AD5620/40/60 and AD5542A/12A DAC SPI driver"
> + tristate "Analog Devices AD5444/6, AD5620/40/60/62 and AD5542A/12A DAC SPI driver"
> depends on SPI
> help
> Say yes here to build support for Analog Devices AD5444, AD5446,
The odd bit is it is already in the description... hmm. There is quite a
disconnect between parts in the two
lists... Don't suppose you'd mind verifying this and cleaning up. At
somepoint the list of parts in here
is going to get two long. Maybe it is already time to go to "AD5444 and
similar SPI DACs"
and rely on the help to tell people what it supports.
> diff --git a/drivers/staging/iio/dac/ad5446.c b/drivers/staging/iio/dac/ad5446.c
> index 90461b2..bcb849b 100644
> --- a/drivers/staging/iio/dac/ad5446.c
> +++ b/drivers/staging/iio/dac/ad5446.c
> @@ -216,6 +216,10 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
> .int_vref_mv = 1250,
> .store_sample = ad5660_store_sample,
> },
> + [ID_AD5662] = {
> + .channel = AD5446_CHANNEL(16, 16, 0),
> + .store_sample = ad5660_store_sample,
> + },
> };
>
> static int ad5446_read_raw(struct iio_dev *indio_dev,
> @@ -375,6 +379,7 @@ static const struct spi_device_id ad5446_id[] = {
> {"ad5640-1250", ID_AD5640_1250},
> {"ad5660-2500", ID_AD5660_2500},
> {"ad5660-1250", ID_AD5660_1250},
> + {"ad5662", ID_AD5662},
> {}
> };
> MODULE_DEVICE_TABLE(spi, ad5446_id);
> diff --git a/drivers/staging/iio/dac/ad5446.h b/drivers/staging/iio/dac/ad5446.h
> index 264df1e..071ce39 100644
> --- a/drivers/staging/iio/dac/ad5446.h
> +++ b/drivers/staging/iio/dac/ad5446.h
> @@ -94,6 +94,7 @@ enum ad5446_supported_device_ids {
> ID_AD5640_1250,
> ID_AD5660_2500,
> ID_AD5660_1250,
> + ID_AD5662,
> };
>
> #endif /* IIO_DAC_AD5446_H_ */
next prev parent reply other threads:[~2012-04-24 8:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-23 17:51 [PATCH 1/8] staging:iio:dac:ad5446: Do not exit powerdown when writing a sample Lars-Peter Clausen
2012-04-23 17:51 ` [PATCH 2/8] staging:iio:dac:ad5446: Remove unused struct field Lars-Peter Clausen
2012-04-23 20:41 ` Jonathan Cameron
2012-04-23 17:51 ` [PATCH 3/8] staging:iio:dac:ad5446: Do not check for individual chip ids in probe Lars-Peter Clausen
2012-04-23 20:43 ` Jonathan Cameron
2012-04-23 17:51 ` [PATCH 4/8] staging:iio:dac:ad5446: Remove duplicated chip_info entries Lars-Peter Clausen
2012-04-23 20:44 ` Jonathan Cameron
2012-04-23 17:51 ` [PATCH 5/8] staging:iio:dac:ad5446: Remove duplicated write sample functions Lars-Peter Clausen
2012-04-23 21:15 ` Jonathan Cameron
2012-04-23 17:51 ` [PATCH 6/8] staging:iio:dac:ad5446: Convert to extended channel attributes Lars-Peter Clausen
2012-04-23 21:25 ` Jonathan Cameron
2012-04-23 17:51 ` [PATCH 7/8] staging:iio:dac:ad5446: Consolidate store_sample and store_pwr_down functions Lars-Peter Clausen
2012-04-24 8:06 ` Jonathan Cameron
2012-04-24 9:11 ` Lars-Peter Clausen
2012-04-24 9:10 ` Jonathan Cameron
2012-04-23 17:51 ` [PATCH 8/8] staging:iio:dac:ad5446: Add support for the AD5662 Lars-Peter Clausen
2012-04-24 8:10 ` Jonathan Cameron [this message]
2012-04-23 20:40 ` [PATCH 1/8] staging:iio:dac:ad5446: Do not exit powerdown when writing a sample Jonathan Cameron
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=4F966001.5080708@kernel.org \
--to=jic23@kernel.org \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=drivers@analog.com \
--cc=jic23@cam.ac.uk \
--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 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).