diff options
author | Vivek Gautam <vivek.gautam@codeaurora.org> | 2016-12-28 03:46:45 -0500 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-02-18 20:44:29 -0500 |
commit | 992edf395b8a8411c506f4345bc04451eba95976 (patch) | |
tree | 30cae9a3fd8b447d98afd6d7dad8496a5329a50b | |
parent | 13d00b6439f1cf570ef962cf141bb3e329997265 (diff) |
thermal: mtk_thermal: Staticise a number of data variables
Sparse throws following warnings:
drivers/thermal/mtk_thermal.c:186:11: warning: symbol 'mt8173_bank_data' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:193:11: warning: symbol 'mt8173_msr' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:197:11: warning: symbol 'mt8173_adcpnp' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:201:11: warning: symbol 'mt8173_mux_values' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:204:11: warning: symbol 'mt2701_bank_data' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:208:11: warning: symbol 'mt2701_msr' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:212:11: warning: symbol 'mt2701_adcpnp' was not declared. Should it be static?
drivers/thermal/mtk_thermal.c:216:11: warning: symbol 'mt2701_mux_values' was not declared. Should it be static?
Make these variables as static to fix these warnings.
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/mtk_thermal.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c index 34169c32d495..1aff7fde54b1 100644 --- a/drivers/thermal/mtk_thermal.c +++ b/drivers/thermal/mtk_thermal.c | |||
@@ -183,37 +183,37 @@ struct mtk_thermal { | |||
183 | }; | 183 | }; |
184 | 184 | ||
185 | /* MT8173 thermal sensor data */ | 185 | /* MT8173 thermal sensor data */ |
186 | const int mt8173_bank_data[MT8173_NUM_ZONES][3] = { | 186 | static const int mt8173_bank_data[MT8173_NUM_ZONES][3] = { |
187 | { MT8173_TS2, MT8173_TS3 }, | 187 | { MT8173_TS2, MT8173_TS3 }, |
188 | { MT8173_TS2, MT8173_TS4 }, | 188 | { MT8173_TS2, MT8173_TS4 }, |
189 | { MT8173_TS1, MT8173_TS2, MT8173_TSABB }, | 189 | { MT8173_TS1, MT8173_TS2, MT8173_TSABB }, |
190 | { MT8173_TS2 }, | 190 | { MT8173_TS2 }, |
191 | }; | 191 | }; |
192 | 192 | ||
193 | const int mt8173_msr[MT8173_NUM_SENSORS_PER_ZONE] = { | 193 | static const int mt8173_msr[MT8173_NUM_SENSORS_PER_ZONE] = { |
194 | TEMP_MSR0, TEMP_MSR1, TEMP_MSR2, TEMP_MSR2 | 194 | TEMP_MSR0, TEMP_MSR1, TEMP_MSR2, TEMP_MSR2 |
195 | }; | 195 | }; |
196 | 196 | ||
197 | const int mt8173_adcpnp[MT8173_NUM_SENSORS_PER_ZONE] = { | 197 | static const int mt8173_adcpnp[MT8173_NUM_SENSORS_PER_ZONE] = { |
198 | TEMP_ADCPNP0, TEMP_ADCPNP1, TEMP_ADCPNP2, TEMP_ADCPNP3 | 198 | TEMP_ADCPNP0, TEMP_ADCPNP1, TEMP_ADCPNP2, TEMP_ADCPNP3 |
199 | }; | 199 | }; |
200 | 200 | ||
201 | const int mt8173_mux_values[MT8173_NUM_SENSORS] = { 0, 1, 2, 3, 16 }; | 201 | static const int mt8173_mux_values[MT8173_NUM_SENSORS] = { 0, 1, 2, 3, 16 }; |
202 | 202 | ||
203 | /* MT2701 thermal sensor data */ | 203 | /* MT2701 thermal sensor data */ |
204 | const int mt2701_bank_data[MT2701_NUM_SENSORS] = { | 204 | static const int mt2701_bank_data[MT2701_NUM_SENSORS] = { |
205 | MT2701_TS1, MT2701_TS2, MT2701_TSABB | 205 | MT2701_TS1, MT2701_TS2, MT2701_TSABB |
206 | }; | 206 | }; |
207 | 207 | ||
208 | const int mt2701_msr[MT2701_NUM_SENSORS_PER_ZONE] = { | 208 | static const int mt2701_msr[MT2701_NUM_SENSORS_PER_ZONE] = { |
209 | TEMP_MSR0, TEMP_MSR1, TEMP_MSR2 | 209 | TEMP_MSR0, TEMP_MSR1, TEMP_MSR2 |
210 | }; | 210 | }; |
211 | 211 | ||
212 | const int mt2701_adcpnp[MT2701_NUM_SENSORS_PER_ZONE] = { | 212 | static const int mt2701_adcpnp[MT2701_NUM_SENSORS_PER_ZONE] = { |
213 | TEMP_ADCPNP0, TEMP_ADCPNP1, TEMP_ADCPNP2 | 213 | TEMP_ADCPNP0, TEMP_ADCPNP1, TEMP_ADCPNP2 |
214 | }; | 214 | }; |
215 | 215 | ||
216 | const int mt2701_mux_values[MT2701_NUM_SENSORS] = { 0, 1, 16 }; | 216 | static const int mt2701_mux_values[MT2701_NUM_SENSORS] = { 0, 1, 16 }; |
217 | 217 | ||
218 | /** | 218 | /** |
219 | * The MT8173 thermal controller has four banks. Each bank can read up to | 219 | * The MT8173 thermal controller has four banks. Each bank can read up to |