From: Jonathan Cameron <jic23@cam.ac.uk>
To: michael.hennerich@analog.com
Cc: linux-iio@vger.kernel.org, drivers@analog.com,
device-drivers-devel@blackfin.uclinux.org
Subject: Re: [PATCH 3/3] IIO: DAC: AD5446: Add support for AD5601/AD5611/AD5621
Date: Thu, 10 Mar 2011 12:14:22 +0000 [thread overview]
Message-ID: <4D78C09E.9080502@cam.ac.uk> (raw)
In-Reply-To: <1299757966-25592-3-git-send-email-michael.hennerich@analog.com>
On 03/10/11 11:52, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> This patch adds support for the AD5601/AD5611/AD5621 single channel,
> 8-/10-/12-bit, buffered voltage output DACs.
>
Queries on ordering of part numbers in line. Nitpick though so up to
you whether you want to have them sorted by number or grouped in some
other way.
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
> ---
> drivers/staging/iio/dac/Kconfig | 3 ++-
> drivers/staging/iio/dac/ad5446.c | 24 ++++++++++++++++++++++++
> drivers/staging/iio/dac/ad5446.h | 3 +++
> 3 files changed, 29 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
> index 3c72871..9539545 100644
> --- a/drivers/staging/iio/dac/Kconfig
> +++ b/drivers/staging/iio/dac/Kconfig
> @@ -15,7 +15,8 @@ config AD5446
> depends on SPI
> help
> Say yes here to build support for Analog Devices AD5444, AD5446,
> - AD5512A, AD5542A, AD5543, AD5553, AD5620, AD5640, AD5660 DACs.
> + AD5512A, AD5542A, AD5543, AD5553, AD5601, AD5611, AD5621, AD5620,
Slightly odd ordering at end of line above... If the intent is numerical order
then you'll want to fix that.
> + AD5640, AD5660 DACs.
>
> To compile this driver as a module, choose M here: the
> module will be called ad5446.
> diff --git a/drivers/staging/iio/dac/ad5446.c b/drivers/staging/iio/dac/ad5446.c
> index 861a7ea..8623a72 100644
> --- a/drivers/staging/iio/dac/ad5446.c
> +++ b/drivers/staging/iio/dac/ad5446.c
> @@ -269,6 +269,27 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
> .left_shift = 0,
> .store_sample = ad5542_store_sample,
> },
> + [ID_AD5601] = {
> + .bits = 8,
> + .storagebits = 16,
> + .left_shift = 6,
> + .store_sample = ad5542_store_sample,
> + .store_pwr_down = ad5620_store_pwr_down,
> + },
> + [ID_AD5611] = {
> + .bits = 10,
> + .storagebits = 16,
> + .left_shift = 4,
> + .store_sample = ad5542_store_sample,
> + .store_pwr_down = ad5620_store_pwr_down,
> + },
Again, is the intent numerical order here?
> + [ID_AD5621] = {
> + .bits = 12,
> + .storagebits = 16,
> + .left_shift = 2,
> + .store_sample = ad5542_store_sample,
> + .store_pwr_down = ad5620_store_pwr_down,
> + },
> [ID_AD5620_2500] = {
> .bits = 12,
> .storagebits = 16,
> @@ -424,6 +445,9 @@ static const struct spi_device_id ad5446_id[] = {
> {"ad5542a", ID_AD5542A},
> {"ad5543", ID_AD5543},
> {"ad5553", ID_AD5553},
> + {"ad5601", ID_AD5601},
> + {"ad5611", ID_AD5611},
> + {"ad5621", ID_AD5621},
and here?
> {"ad5620-2500", ID_AD5620_2500}, /* AD5620/40/60: */
> {"ad5620-1250", ID_AD5620_1250}, /* part numbers may look differently */
> {"ad5640-2500", ID_AD5640_2500},
> diff --git a/drivers/staging/iio/dac/ad5446.h b/drivers/staging/iio/dac/ad5446.h
> index e9397a6..7ac63ab 100644
> --- a/drivers/staging/iio/dac/ad5446.h
> +++ b/drivers/staging/iio/dac/ad5446.h
> @@ -96,6 +96,9 @@ enum ad5446_supported_device_ids {
> ID_AD5543,
> ID_AD5512A,
> ID_AD5553,
> + ID_AD5601,
> + ID_AD5611,
> + ID_AD5621,
> ID_AD5620_2500,
> ID_AD5620_1250,
> ID_AD5640_2500,
next prev parent reply other threads:[~2011-03-10 12:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 11:52 [PATCH 1/3] IIO: DAC: AD5446: Add missing ID table entries michael.hennerich
2011-03-10 11:52 ` [PATCH 2/3] IIO: DAC: AD5446: Add power down support michael.hennerich
2011-03-10 12:10 ` Jonathan Cameron
2011-03-10 11:52 ` [PATCH 3/3] IIO: DAC: AD5446: Add support for AD5601/AD5611/AD5621 michael.hennerich
2011-03-10 12:14 ` Jonathan Cameron [this message]
2011-03-10 12:08 ` [PATCH 1/3] IIO: DAC: AD5446: Add missing ID table entries Jonathan Cameron
-- strict thread matches above, loose matches on Subject: below --
2011-03-10 12:26 michael.hennerich
2011-03-10 12:26 ` [PATCH 3/3] IIO: DAC: AD5446: Add support for AD5601/AD5611/AD5621 michael.hennerich
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=4D78C09E.9080502@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=drivers@analog.com \
--cc=linux-iio@vger.kernel.org \
--cc=michael.hennerich@analog.com \
/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.