diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2020-12-04 05:55:02 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-01-16 18:28:18 +0000 |
commit | bb01e263743293d37148f1fa00e3ea04dca416a5 (patch) | |
tree | 4ad1aaa3d18091096525f62ad244a3a579039e47 /drivers/iio | |
parent | 6e39b145cef7577cd6b550e633155e5fc1e5838e (diff) | |
download | linux-bb01e263743293d37148f1fa00e3ea04dca416a5.tar.bz2 |
iio: adc: move vadc_map_pt from header to the source file
struct vadc_map_pt is not used outside of qcom-vadc-common.c, so move it
there from the global header file.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20201204025509.1075506-9-dmitry.baryshkov@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/qcom-vadc-common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/adc/qcom-vadc-common.c b/drivers/iio/adc/qcom-vadc-common.c index ee94774b72e6..45a38602f66a 100644 --- a/drivers/iio/adc/qcom-vadc-common.c +++ b/drivers/iio/adc/qcom-vadc-common.c @@ -10,6 +10,17 @@ #include <linux/module.h> #include <linux/units.h> +/** + * struct vadc_map_pt - Map the graph representation for ADC channel + * @x: Represent the ADC digitized code. + * @y: Represent the physical data which can be temperature, voltage, + * resistance. + */ +struct vadc_map_pt { + s32 x; + s32 y; +}; + /* Voltage to temperature */ static const struct vadc_map_pt adcmap_100k_104ef_104fb[] = { {1758, -40}, |