staging:iio:cdc:ad7150: Handle variation in chan_spec across device and irq present...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Mar 2021 18:14:53 +0000 (18:14 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 7 Apr 2021 07:36:36 +0000 (08:36 +0100)
commit67322b2b667847515a35e22c9a86fc8933274468
tree26cb862b930867f23e49b497db41c79e22e8fbf3
parentf32df79d5c7c7fa547b6983c2537177a83beb21d
staging:iio:cdc:ad7150: Handle variation in chan_spec across device and irq present or not

The driver supports devices with different numbers of channels and
also can function without provision of an IRQ (with reduced features),
so this patch handles this cleanly by having multiple chan_spec
arrays and iio_info structures to pick between depending on what we
have.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210314181511.531414-7-jic23@kernel.org
drivers/staging/iio/cdc/ad7150.c