iio: adc: ad7124: Remove input number limitation
authorMircea Caprioru <mircea.caprioru@analog.com>
Tue, 25 Jun 2019 08:11:24 +0000 (11:11 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 26 Jun 2019 20:24:21 +0000 (21:24 +0100)
commitf1794fd7bdf7981e21595d0162ab4f7305b3c7c1
tree8a938cf2576cc66e3786d42efe70817990d18a37
parent6a8036862de0ab7dc012c08049dcf323b884e6f1
iio: adc: ad7124: Remove input number limitation

The driver limits the user to use only 4/8 differential inputs, but this
device has the option to use pseudo-differential channels. This will
increase the number of channels to be equal with the number of inputs so 8
channels for ad7124-4 and 16 for ad7124-8.

This patch removes the check between channel nodes and num_inputs value.

Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c