]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ad7380: prepare driver for single-ended parts support
authorJulien Stephan <jstephan@baylibre.com>
Wed, 31 Jul 2024 07:05:45 +0000 (09:05 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 10:33:34 +0000 (11:33 +0100)
commitd4d7e297789d718e4f47f61380b71d63f2aad6ab
tree73e814d979b5037543a9b6da055df3204e3b044e
parent65c89a5ac67b6551025bdea4574768db4579b979
iio: adc: ad7380: prepare driver for single-ended parts support

ad738x family contains single-ended parts that have a 2:1 mux in front
of ADC, so the number of IIO channels is different from the number of
simultaneous channels that can be sampled.

To prepare the support for single-ended parts, introduce a new
num_simultaneous_channels variable. For currently supported parts,
num_simultaneous_channels is equal to num_channels minus 1 (the
timestamps channel)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240731-ad7380-add-single-ended-chips-v2-4-cd63bf05744c@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7380.c