Skip to content

Commit bb01e26

Browse files
lumagjic23
authored andcommitted
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>
1 parent 6e39b14 commit bb01e26

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

drivers/iio/adc/qcom-vadc-common.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
#include <linux/module.h>
1111
#include <linux/units.h>
1212

13+
/**
14+
* struct vadc_map_pt - Map the graph representation for ADC channel
15+
* @x: Represent the ADC digitized code.
16+
* @y: Represent the physical data which can be temperature, voltage,
17+
* resistance.
18+
*/
19+
struct vadc_map_pt {
20+
s32 x;
21+
s32 y;
22+
};
23+
1324
/* Voltage to temperature */
1425
static const struct vadc_map_pt adcmap_100k_104ef_104fb[] = {
1526
{1758, -40},

include/linux/iio/adc/qcom-vadc-common.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,6 @@
5959
#define DIE_TEMP_ADC7_SCALE_FACTOR 1000
6060
#define DIE_TEMP_ADC7_MAX 160000
6161

62-
/**
63-
* struct vadc_map_pt - Map the graph representation for ADC channel
64-
* @x: Represent the ADC digitized code.
65-
* @y: Represent the physical data which can be temperature, voltage,
66-
* resistance.
67-
*/
68-
struct vadc_map_pt {
69-
s32 x;
70-
s32 y;
71-
};
72-
7362
/*
7463
* VADC_CALIB_ABSOLUTE: uses the 625mV and 1.25V as reference channels.
7564
* VADC_CALIB_RATIOMETRIC: uses the reference voltage (1.8V) and GND for

0 commit comments

Comments
 (0)