* [PATCH] staging:iio:dac:ad5446: Add support for the AD5662
@ 2011-10-28 9:05 Lars-Peter Clausen
2011-10-31 11:26 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Lars-Peter Clausen @ 2011-10-28 9:05 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Michael Hennerich, linux-iio, device-drivers-devel, drivers,
Lars-Peter Clausen
The AD5662 is compatible to the AD5660, but uses an external reference instead
of an internal.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
drivers/staging/iio/dac/Kconfig | 2 +-
drivers/staging/iio/dac/ad5446.c | 6 ++++++
drivers/staging/iio/dac/ad5446.h | 1 +
3 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
index fac8549..daa1079 100644
--- a/drivers/staging/iio/dac/Kconfig
+++ b/drivers/staging/iio/dac/Kconfig
@@ -37,7 +37,7 @@ config AD5446
help
Say yes here to build support for Analog Devices AD5444, AD5446,
AD5512A, AD5542A, AD5543, AD5553, AD5601, AD5611, AD5620, AD5621,
- AD5640, AD5660 DACs.
+ AD5640, AD5660, AD5662 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 82ac041..3fcb28b 100644
--- a/drivers/staging/iio/dac/ad5446.c
+++ b/drivers/staging/iio/dac/ad5446.c
@@ -264,6 +264,11 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
.store_sample = ad5660_store_sample,
.store_pwr_down = ad5660_store_pwr_down,
},
+ [ID_AD5662] = {
+ .channel = AD5446_CHANNEL(16, 16, 0),
+ .store_sample = ad5660_store_sample,
+ .store_pwr_down = ad5660_store_pwr_down,
+ },
};
static int ad5446_read_raw(struct iio_dev *indio_dev,
@@ -433,6 +438,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},
{}
};
diff --git a/drivers/staging/iio/dac/ad5446.h b/drivers/staging/iio/dac/ad5446.h
index 4ea3476..f1ca8fe 100644
--- a/drivers/staging/iio/dac/ad5446.h
+++ b/drivers/staging/iio/dac/ad5446.h
@@ -98,6 +98,7 @@ enum ad5446_supported_device_ids {
ID_AD5640_1250,
ID_AD5660_2500,
ID_AD5660_1250,
+ ID_AD5662,
};
#endif /* IIO_DAC_AD5446_H_ */
--
1.7.7
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] staging:iio:dac:ad5446: Add support for the AD5662
2011-10-28 9:05 [PATCH] staging:iio:dac:ad5446: Add support for the AD5662 Lars-Peter Clausen
@ 2011-10-31 11:26 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2011-10-31 11:26 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: Michael Hennerich, linux-iio, device-drivers-devel, drivers
On 10/28/11 10:05, Lars-Peter Clausen wrote:
> The AD5662 is compatible to the AD5660, but uses an external reference instead
> of an internal.
Trivial, so you could have sent this on whilst I was away. Guess there
was no real rush though!
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
> ---
> drivers/staging/iio/dac/Kconfig | 2 +-
> drivers/staging/iio/dac/ad5446.c | 6 ++++++
> drivers/staging/iio/dac/ad5446.h | 1 +
> 3 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
> index fac8549..daa1079 100644
> --- a/drivers/staging/iio/dac/Kconfig
> +++ b/drivers/staging/iio/dac/Kconfig
> @@ -37,7 +37,7 @@ config AD5446
> help
> Say yes here to build support for Analog Devices AD5444, AD5446,
> AD5512A, AD5542A, AD5543, AD5553, AD5601, AD5611, AD5620, AD5621,
> - AD5640, AD5660 DACs.
> + AD5640, AD5660, AD5662 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 82ac041..3fcb28b 100644
> --- a/drivers/staging/iio/dac/ad5446.c
> +++ b/drivers/staging/iio/dac/ad5446.c
> @@ -264,6 +264,11 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
> .store_sample = ad5660_store_sample,
> .store_pwr_down = ad5660_store_pwr_down,
> },
> + [ID_AD5662] = {
> + .channel = AD5446_CHANNEL(16, 16, 0),
> + .store_sample = ad5660_store_sample,
> + .store_pwr_down = ad5660_store_pwr_down,
> + },
> };
>
> static int ad5446_read_raw(struct iio_dev *indio_dev,
> @@ -433,6 +438,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},
> {}
> };
>
> diff --git a/drivers/staging/iio/dac/ad5446.h b/drivers/staging/iio/dac/ad5446.h
> index 4ea3476..f1ca8fe 100644
> --- a/drivers/staging/iio/dac/ad5446.h
> +++ b/drivers/staging/iio/dac/ad5446.h
> @@ -98,6 +98,7 @@ enum ad5446_supported_device_ids {
> ID_AD5640_1250,
> ID_AD5660_2500,
> ID_AD5660_1250,
> + ID_AD5662,
> };
>
> #endif /* IIO_DAC_AD5446_H_ */
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] staging:iio:dac:ad5446: Add support for the AD5662
@ 2011-11-15 15:34 Lars-Peter Clausen
0 siblings, 0 replies; 3+ messages in thread
From: Lars-Peter Clausen @ 2011-11-15 15:34 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Jonathan Cameron, Michael Hennerich, devel, linux-iio,
device-drivers-devel, drivers, Lars-Peter Clausen
The AD5662 is compatible to the AD5660, but uses an external reference instead
of an internal.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
---
drivers/staging/iio/dac/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/iio/dac/Kconfig b/drivers/staging/iio/dac/Kconfig
index 0e8983a..a71defb 100644
--- a/drivers/staging/iio/dac/Kconfig
+++ b/drivers/staging/iio/dac/Kconfig
@@ -47,7 +47,7 @@ config AD5446
help
Say yes here to build support for Analog Devices AD5444, AD5446,
AD5512A, AD5542A, AD5543, AD5553, AD5601, AD5611, AD5620, AD5621,
- AD5640, AD5660 DACs.
+ AD5640, AD5660, AD5662 DACs.
To compile this driver as a module, choose M here: the
module will be called ad5446.
--
1.7.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-15 15:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 9:05 [PATCH] staging:iio:dac:ad5446: Add support for the AD5662 Lars-Peter Clausen
2011-10-31 11:26 ` Jonathan Cameron
-- strict thread matches above, loose matches on Subject: below --
2011-11-15 15:34 Lars-Peter Clausen
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.