Skip to content

Commit

Permalink
staging: IIO: DAC: AD5446 add support for AD5541A devices
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent ac4f6ee commit 67d1c1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/staging/iio/dac/ad5446.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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},
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/iio/dac/ad5446.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 67d1c1f

Please sign in to comment.