]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: frequency: adf4371: make use of spi_get_device_match_data()
authorNuno Sa <nuno.sa@analog.com>
Wed, 9 Oct 2024 14:16:43 +0000 (16:16 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Oct 2024 18:12:42 +0000 (19:12 +0100)
commitf1a5d7795fb0dea2ce547d8a5edbc7f595795974
treeaa5c34065cb873221e8c186c97e9bb3540ef5ce6
parent3eb27cf141365f32046168c9bc5da4076c400e35
iio: frequency: adf4371: make use of spi_get_device_match_data()

To use spi_get_device_match_data(), add the chip_info structure to the
of_device_id table which is always a good thing to do.

While at it, added dedicated variables for each chip (instead of the
harder to maintain array) and added a new string variable for the part
name.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20241009-dev-adf4371-minor-improv-v1-1-97f4f22ed941@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/adf4371.c