iio/adc: ingenic: Retrieve channels list from soc data struct
authorPaul Cercueil <paul@crapouillou.net>
Sun, 19 Jul 2020 20:53:05 +0000 (22:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 20 Jul 2020 09:26:50 +0000 (10:26 +0100)
commit6a294b41ab344948bac28fa39f4c1d42c0acdace
treebae1ff9e52ed7b1ce110f89dbe3ef6b39e8576c4
parent155e41efe70bcd5f254e43d38c19f74b1378cd78
iio/adc: ingenic: Retrieve channels list from soc data struct

Instead of having one array of struct iio_chan_spec for all SoCs, and
have some SoCs remove the last item of the array as they can't use it,
have each SoC define its array of supported channels.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ingenic-adc.c