]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit053ffe3c8cfe31aaed67a63c3450b6f6e5961abd
tree896fddd673bbc4890224a246251d265c721738d8
parenta2fdb4e1a6c8e68f95eae71724a4e071b8394a72
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