iio: adc: xilinx-ams: Fixed missing PS channels
authorRobert Hancock <robert.hancock@calian.com>
Thu, 27 Jan 2022 17:34:48 +0000 (11:34 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 28 Feb 2022 18:23:38 +0000 (18:23 +0000)
commitc564e1787fcb50e1f92646e7eac88b22750d7e34
treeb5615586adf8d1337c276756c194b4fc54a3f47b
parent91c2bec2cd60ca74b41f4fa843f3f8674ec0dd29
iio: adc: xilinx-ams: Fixed missing PS channels

The code forgot to increment num_channels for the PS channel inputs,
resulting in them not being enabled as they should.

Fixes: d5c70627a794 ("iio: adc: Add Xilinx AMS driver")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/20220127173450.3684318-3-robert.hancock@calian.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-ams.c