]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf22b79eeb793a47eb6c2f21c07687213f3f3b469
treebae1ff9e52ed7b1ce110f89dbe3ef6b39e8576c4
parentab7ed545afd28cfb63918cca7097f55e8e8bc7e4
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