Skip to content

Commit 02cf5bc

Browse files
Min-Huadlezcano
authored andcommitted
thermal/drivers/tsens: Make tsens_xxxx_nvmem static
This patch fixes the following sparse warnings: drivers/thermal/qcom/tsens-v1.c:24:40: sparse: warning: symbol 'tsens_qcs404_nvmem' was not declared. Should it be static? drivers/thermal/qcom/tsens-v0_1.c:26:40: sparse: warning: symbol 'tsens_8916_nvmem' was not declared. Should it be static? drivers/thermal/qcom/tsens-v0_1.c:42:40: sparse: warning: symbol 'tsens_8974_nvmem' was not declared. Should it be static? drivers/thermal/qcom/tsens-v0_1.c:64:40: sparse: warning: symbol 'tsens_8974_backup_nvmem' was not declared. Should it be static? No functional change intended. Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230713160415.149381-1-minhuadotchen@gmail.com
1 parent 4afcb58 commit 02cf5bc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/thermal/qcom/tsens-v0_1.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#define BIT_APPEND 0x3
2525

26-
struct tsens_legacy_calibration_format tsens_8916_nvmem = {
26+
static struct tsens_legacy_calibration_format tsens_8916_nvmem = {
2727
.base_len = 7,
2828
.base_shift = 3,
2929
.sp_len = 5,
@@ -39,7 +39,7 @@ struct tsens_legacy_calibration_format tsens_8916_nvmem = {
3939
},
4040
};
4141

42-
struct tsens_legacy_calibration_format tsens_8974_nvmem = {
42+
static struct tsens_legacy_calibration_format tsens_8974_nvmem = {
4343
.base_len = 8,
4444
.base_shift = 2,
4545
.sp_len = 6,
@@ -61,7 +61,7 @@ struct tsens_legacy_calibration_format tsens_8974_nvmem = {
6161
},
6262
};
6363

64-
struct tsens_legacy_calibration_format tsens_8974_backup_nvmem = {
64+
static struct tsens_legacy_calibration_format tsens_8974_backup_nvmem = {
6565
.base_len = 8,
6666
.base_shift = 2,
6767
.sp_len = 6,

drivers/thermal/qcom/tsens-v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define TM_HIGH_LOW_INT_STATUS_OFF 0x0088
2222
#define TM_HIGH_LOW_Sn_INT_THRESHOLD_OFF 0x0090
2323

24-
struct tsens_legacy_calibration_format tsens_qcs404_nvmem = {
24+
static struct tsens_legacy_calibration_format tsens_qcs404_nvmem = {
2525
.base_len = 8,
2626
.base_shift = 2,
2727
.sp_len = 6,

0 commit comments

Comments
 (0)