]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: meson-saradc: squash and share the common adc platform data
authorYixun Lan <yixun.lan@amlogic.com>
Mon, 26 Mar 2018 08:46:27 +0000 (16:46 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 30 Mar 2018 12:49:33 +0000 (13:49 +0100)
commitd756fd2541149aa544d1d16d376b1f48f37d11a9
tree896fddd673bbc4890224a246251d265c721738d8
parent10da3f9afcaa600aff2324d8369c61bfb08eb509
iio: adc: meson-saradc: squash and share the common adc platform data

Extract and promote common adc platform data into a new structure,
to make it better share the info between several SoCs,
this will avoid duplicating the code all over the place,
Save a few memory and make the code more maintainable.

Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c