]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7606: move software functions into common file
authorGuillaume Stols <gstols@baylibre.com>
Mon, 10 Feb 2025 16:10:53 +0000 (17:10 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 11 Feb 2025 19:56:25 +0000 (19:56 +0000)
commitd2477887f6677de0675e600f1590378a5fb52909
tree660ae5525eb220e52616bd211f075f4a8f73d26f
parentf2a62931b39478c98f977caf299df5bc072f38e0
iio: adc: ad7606: move software functions into common file

Since the register are always the same, whatever bus is used, moving the
software functions into the main file avoids the code to be duplicated
in both SPI and parallel version of the driver.

Signed-off-by: Guillaume Stols <gstols@baylibre.com>
Co-developed-by: Angelo Dureghello <adureghello@baylibre.com>
Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250210-wip-bl-ad7606_add_backend_sw_mode-v4-3-160df18b1da7@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c
drivers/iio/adc/ad7606.h
drivers/iio/adc/ad7606_spi.c