]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iio: adc: break out common code from SPMI VADC
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Apr 2017 12:08:18 +0000 (14:08 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Apr 2017 16:40:49 +0000 (17:40 +0100)
commite932d4f041a487debc31e98c8b70baa861532272
treec71d4fd809c4c3ba9fd7c4ee739e4784f2b4abc2
parent96b3c833035ee3e591361c1b424d3ae87241133c
iio: adc: break out common code from SPMI VADC

The SPMI VADC and the earlier XOADC share a subset of
common code, so to be able to use the same code in both
drivers, we break out a separate file with the common code,
prefix exported functions that are no longer static with
qcom_* and bake an object qcom-spmi-vadc.o that contains both
files: qcom-vadc-common.o and qcom-spmi-vadc-core.o.

As we need to follow the procedure for making a kernel module
or compiled in object from several files, but still want to
produce the same module name, rename the qcom-spmi-vadc.c
file to qcom-spmi-vadc-core.c so we can bake the two objects
into qcom-spmi-vadc.o

Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-arm-msm@vger.kernel.org
Cc: Ivan T. Ivanov <iivanov.xz@gmail.com>
Cc: Andy Gross <andy.gross@linaro.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Rama Krishna Phani A <rphani@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/qcom-spmi-vadc.c
drivers/iio/adc/qcom-vadc-common.c [new file with mode: 0644]
drivers/iio/adc/qcom-vadc-common.h [new file with mode: 0644]