diff options
author | Andrew F. Davis <afd@ti.com> | 2016-05-01 16:37:02 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-04 06:13:36 -0400 |
commit | e462350a95ee6d1ea53bc518f2bc5232b451e2e2 (patch) | |
tree | 6d02240958e592899f6ddaa0ca8da38c0055d3fe | |
parent | 3ff34ee2ad2aa16fdde728bd9048098f71391087 (diff) |
iio: health/afe440x: Remove unused definitions
These definitions are not currently used and if the functionality
they represent is needed the values should be added back to a table
for easy userspace use.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/health/afe4403.c | 37 | ||||
-rw-r--r-- | drivers/iio/health/afe4404.c | 20 |
2 files changed, 0 insertions, 57 deletions
diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c index 059d52153e78..9a081465c42f 100644 --- a/drivers/iio/health/afe4403.c +++ b/drivers/iio/health/afe4403.c | |||
@@ -39,43 +39,6 @@ | |||
39 | #define AFE4403_TIAGAIN 0x20 | 39 | #define AFE4403_TIAGAIN 0x20 |
40 | #define AFE4403_TIA_AMB_GAIN 0x21 | 40 | #define AFE4403_TIA_AMB_GAIN 0x21 |
41 | 41 | ||
42 | /* AFE4403 LEDCNTRL values */ | ||
43 | #define AFE440X_LEDCNTRL_RANGE_TX_HALF 0x1 | ||
44 | #define AFE440X_LEDCNTRL_RANGE_TX_FULL 0x2 | ||
45 | #define AFE440X_LEDCNTRL_RANGE_TX_OFF 0x3 | ||
46 | |||
47 | /* AFE4403 CONTROL2 values */ | ||
48 | #define AFE440X_CONTROL2_TX_REF_025 0x0 | ||
49 | #define AFE440X_CONTROL2_TX_REF_050 0x1 | ||
50 | #define AFE440X_CONTROL2_TX_REF_100 0x2 | ||
51 | #define AFE440X_CONTROL2_TX_REF_075 0x3 | ||
52 | |||
53 | /* AFE4403 CONTROL3 values */ | ||
54 | #define AFE440X_CONTROL3_CLK_DIV_2 0x0 | ||
55 | #define AFE440X_CONTROL3_CLK_DIV_4 0x2 | ||
56 | #define AFE440X_CONTROL3_CLK_DIV_6 0x3 | ||
57 | #define AFE440X_CONTROL3_CLK_DIV_8 0x4 | ||
58 | #define AFE440X_CONTROL3_CLK_DIV_12 0x5 | ||
59 | #define AFE440X_CONTROL3_CLK_DIV_1 0x7 | ||
60 | |||
61 | /* AFE4403 TIAGAIN_CAP values */ | ||
62 | #define AFE4403_TIAGAIN_CAP_5_P 0x0 | ||
63 | #define AFE4403_TIAGAIN_CAP_10_P 0x1 | ||
64 | #define AFE4403_TIAGAIN_CAP_20_P 0x2 | ||
65 | #define AFE4403_TIAGAIN_CAP_30_P 0x3 | ||
66 | #define AFE4403_TIAGAIN_CAP_55_P 0x8 | ||
67 | #define AFE4403_TIAGAIN_CAP_155_P 0x10 | ||
68 | |||
69 | /* AFE4403 TIAGAIN_RES values */ | ||
70 | #define AFE4403_TIAGAIN_RES_500_K 0x0 | ||
71 | #define AFE4403_TIAGAIN_RES_250_K 0x1 | ||
72 | #define AFE4403_TIAGAIN_RES_100_K 0x2 | ||
73 | #define AFE4403_TIAGAIN_RES_50_K 0x3 | ||
74 | #define AFE4403_TIAGAIN_RES_25_K 0x4 | ||
75 | #define AFE4403_TIAGAIN_RES_10_K 0x5 | ||
76 | #define AFE4403_TIAGAIN_RES_1_M 0x6 | ||
77 | #define AFE4403_TIAGAIN_RES_NONE 0x7 | ||
78 | |||
79 | enum afe4403_fields { | 42 | enum afe4403_fields { |
80 | /* Gains */ | 43 | /* Gains */ |
81 | F_RF_LED1, F_CF_LED1, | 44 | F_RF_LED1, F_CF_LED1, |
diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/health/afe4404.c index aa8770b291c8..3a8131de2626 100644 --- a/drivers/iio/health/afe4404.c +++ b/drivers/iio/health/afe4404.c | |||
@@ -51,26 +51,6 @@ | |||
51 | /* AFE4404 CONTROL3 register fields */ | 51 | /* AFE4404 CONTROL3 register fields */ |
52 | #define AFE440X_CONTROL3_OSC_ENABLE BIT(9) | 52 | #define AFE440X_CONTROL3_OSC_ENABLE BIT(9) |
53 | 53 | ||
54 | /* AFE4404 TIA_GAIN_CAP values */ | ||
55 | #define AFE4404_TIA_GAIN_CAP_5_P 0x0 | ||
56 | #define AFE4404_TIA_GAIN_CAP_2_5_P 0x1 | ||
57 | #define AFE4404_TIA_GAIN_CAP_10_P 0x2 | ||
58 | #define AFE4404_TIA_GAIN_CAP_7_5_P 0x3 | ||
59 | #define AFE4404_TIA_GAIN_CAP_20_P 0x4 | ||
60 | #define AFE4404_TIA_GAIN_CAP_17_5_P 0x5 | ||
61 | #define AFE4404_TIA_GAIN_CAP_25_P 0x6 | ||
62 | #define AFE4404_TIA_GAIN_CAP_22_5_P 0x7 | ||
63 | |||
64 | /* AFE4404 TIA_GAIN_RES values */ | ||
65 | #define AFE4404_TIA_GAIN_RES_500_K 0x0 | ||
66 | #define AFE4404_TIA_GAIN_RES_250_K 0x1 | ||
67 | #define AFE4404_TIA_GAIN_RES_100_K 0x2 | ||
68 | #define AFE4404_TIA_GAIN_RES_50_K 0x3 | ||
69 | #define AFE4404_TIA_GAIN_RES_25_K 0x4 | ||
70 | #define AFE4404_TIA_GAIN_RES_10_K 0x5 | ||
71 | #define AFE4404_TIA_GAIN_RES_1_M 0x6 | ||
72 | #define AFE4404_TIA_GAIN_RES_2_M 0x7 | ||
73 | |||
74 | enum afe4404_fields { | 54 | enum afe4404_fields { |
75 | /* Gains */ | 55 | /* Gains */ |
76 | F_TIA_GAIN_SEP, F_TIA_CF_SEP, | 56 | F_TIA_GAIN_SEP, F_TIA_CF_SEP, |