]> git.baikalelectronics.ru Git - kernel.git/commit
IIO: Ingenic JZ47xx: Add xlate cb to retrieve correct channel idx
authorArtur Rojek <contact@artur-rojek.eu>
Sun, 19 Jul 2020 20:53:04 +0000 (22:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 20 Jul 2020 09:25:32 +0000 (10:25 +0100)
commitab7ed545afd28cfb63918cca7097f55e8e8bc7e4
tree8c9388accc334db683355b0a246f285c1c0b7e58
parent410b74160fb8652fe26700efda086c16c9f2c0dc
IIO: Ingenic JZ47xx: Add xlate cb to retrieve correct channel idx

Provide an of_xlate callback in order to retrieve the correct channel
specifier index from the IIO channels array.

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