]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: amplifiers: ad8366: add device tree support
authorRodrigo Alencar <rodrigo.alencar@analog.com>
Mon, 16 Feb 2026 17:10:53 +0000 (17:10 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:00:58 +0000 (21:00 +0000)
commitd5e02d0d00b99bb37f935f250181bf310d3d6e85
tree9afb7cf2362b272964e1985e12566d54af20e8cf
parent314b184b8202563b41317132c8aeb79fc10e14f7
iio: amplifiers: ad8366: add device tree support

Drop the enum ID, split chip info table into per-device structs and add
of_match_table. Additionally, add 'name' field into the chip info struct,
dropping the usage of spi_get_device_id().

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/amplifiers/ad8366.c