]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: adi-axi-adc: add platform children support
authorAngelo Dureghello <adureghello@baylibre.com>
Mon, 10 Feb 2025 16:10:55 +0000 (17:10 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 11 Feb 2025 19:56:25 +0000 (19:56 +0000)
commita4ab57debde24a0ae3e02b70670352d0c49e96b9
tree2641d10438b34e5d8d45a251fe2f6c6ae6c611af
parentc4330d081775c628340cbf297619b15c47fb9b98
iio: adc: adi-axi-adc: add platform children support

This is a preparation for the next commit adding support for register
read and write functions on AD7606.
Since sometimes a bus will be used, it has been agreed during ad3552's
driver implementation that the device's driver bus is the backend, whose
device node will be a child node.
To provide the special callbacks for setting the register, axi-adc needs
to pass them to the child device's driver through platform data.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250210-wip-bl-ad7606_add_backend_sw_mode-v4-5-160df18b1da7@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606_bus_iface.h [new file with mode: 0644]
drivers/iio/adc/adi-axi-adc.c