iio/adc: ingenic: add JZ4760 support to the sadc driver
authorChristophe Branchereau <cbranchereau@gmail.com>
Mon, 26 Jul 2021 08:20:31 +0000 (10:20 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 31 Jul 2021 17:14:53 +0000 (18:14 +0100)
commitb9e9bdd425a3c99e15f5dfd465bef936130b7491
treed2861cde38170357288edfb45df2a83fe5fc9e22
parentd827cbcdb34e1972e31cf7e603410c05de584ca9
iio/adc: ingenic: add JZ4760 support to the sadc driver

The jz4760 sadc is very similar to the jz4770 one, but has a VREF of 2.5V
and 3 aux channels.

modify ingenic_adc_read_chan_info_raw() needs a change to account for it.

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20210726082033.351533-4-cbranchereau@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ingenic-adc.c