Re: [PATCH 1/1] IIO: DAC: AD5446 add support for AD5541A devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/13/11 14:42, michael.hennerich@xxxxxxxxxx wrote:
> From: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
> 
> Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxx>

> ---
>  drivers/staging/iio/dac/ad5446.c |    7 +++++++
>  drivers/staging/iio/dac/ad5446.h |    1 +
>  2 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/staging/iio/dac/ad5446.c b/drivers/staging/iio/dac/ad5446.c
> index 8623a72..102bcc4 100644
> --- a/drivers/staging/iio/dac/ad5446.c
> +++ b/drivers/staging/iio/dac/ad5446.c
> @@ -245,6 +245,12 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
>  		.left_shift = 0,
>  		.store_sample = ad5446_store_sample,
>  	},
> +	[ID_AD5541A] = {
> +		.bits = 16,
> +		.storagebits = 16,
> +		.left_shift = 0,
> +		.store_sample = ad5542_store_sample,
> +	},
>  	[ID_AD5542A] = {
>  		.bits = 16,
>  		.storagebits = 16,
> @@ -442,6 +448,7 @@ static const struct spi_device_id ad5446_id[] = {
>  	{"ad5444", ID_AD5444},
>  	{"ad5446", ID_AD5446},
>  	{"ad5512a", ID_AD5512A},
> +	{"ad5541a", ID_AD5541A},
>  	{"ad5542a", ID_AD5542A},
>  	{"ad5543", ID_AD5543},
>  	{"ad5553", ID_AD5553},
> diff --git a/drivers/staging/iio/dac/ad5446.h b/drivers/staging/iio/dac/ad5446.h
> index 7ac63ab..e6ffd2b 100644
> --- a/drivers/staging/iio/dac/ad5446.h
> +++ b/drivers/staging/iio/dac/ad5446.h
> @@ -92,6 +92,7 @@ struct ad5446_chip_info {
>  enum ad5446_supported_device_ids {
>  	ID_AD5444,
>  	ID_AD5446,
> +	ID_AD5541A,
>  	ID_AD5542A,
>  	ID_AD5543,
>  	ID_AD5512A,

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux