Skip to content

Commit

Permalink
iio: adc: adaq4224: Fix AD4030 of_match
Browse files Browse the repository at this point in the history
Unswap IDs for ad4030 and ad4630 in open firmware / devicetree match table.

Fixes: <04ff9ea893f9> (drivers: iio: adc: add support for ad4630)

Signed-off-by: Liviu Adace <[email protected]>
Signed-off-by: Marcelo Schmitt <[email protected]>
  • Loading branch information
machschmitt authored and nunojsa committed Nov 3, 2023
1 parent a6de6a7 commit 46a898d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iio/adc/ad4630.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,9 +1315,9 @@ static const struct spi_device_id ad4630_id_table[] = {
MODULE_DEVICE_TABLE(spi, ad4630_id_table);

static const struct of_device_id ad4630_of_match[] = {
{ .compatible = "adi,ad4630-24", .data = &ad4630_chip_info[ID_AD4030_24] },
{ .compatible = "adi,ad4030-24", .data = &ad4630_chip_info[ID_AD4030_24] },
{ .compatible = "adi,ad4630-16", .data = &ad4630_chip_info[ID_AD4630_16] },
{ .compatible = "adi,ad4030-24", .data = &ad4630_chip_info[ID_AD4630_24] },
{ .compatible = "adi,ad4630-24", .data = &ad4630_chip_info[ID_AD4630_24] },
{ .compatible = "adi,ad463x", .data = &ad463x_chip_info},
{}
};
Expand Down

0 comments on commit 46a898d

Please sign in to comment.