Skip to content

Commit c631da1

Browse files
stephan-ghdlezcano
authored andcommitted
thermal/drivers/qcom/tsens: Drop unused legacy structs
The old single-cell parsing code was removed for MSM8939, MDM9607 and MSM8976 but for some reason the structs defining the bit positions etc were kept around (unused). Drop them now. Cc: Dmitry Baryshkov <[email protected]> Fixes: 51d78b8 ("thermal/drivers/tsens: Drop single-cell code for mdm9607") Fixes: dfadb45 ("thermal/drivers/tsens: Drop single-cell code for msm8939") Fixes: 3a90897 ("thermal/drivers/tsens: Drop single-cell code for msm8976/msm8956") Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Stephan Gerhold <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 074ccf8 commit c631da1

File tree

2 files changed

+0
-58
lines changed

2 files changed

+0
-58
lines changed

drivers/thermal/qcom/tsens-v0_1.c

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,6 @@ struct tsens_legacy_calibration_format tsens_8916_nvmem = {
3939
},
4040
};
4141

42-
struct tsens_legacy_calibration_format tsens_8939_nvmem = {
43-
.base_len = 8,
44-
.base_shift = 2,
45-
.sp_len = 6,
46-
.mode = { 12, 0 },
47-
.invalid = { 12, 2 },
48-
.base = { { 0, 0 }, { 1, 24 } },
49-
.sp = {
50-
{ { 12, 3 }, { 12, 9 } },
51-
{ { 12, 15 }, { 12, 21 } },
52-
{ { 12, 27 }, { 13, 1 } },
53-
{ { 13, 7 }, { 13, 13 } },
54-
{ { 13, 19 }, { 13, 25 } },
55-
{ { 0, 8 }, { 0, 14 } },
56-
{ { 0, 20 }, { 0, 26 } },
57-
{ { 1, 0 }, { 1, 6 } },
58-
{ { 1, 12 }, { 1, 18 } },
59-
},
60-
};
61-
6242
struct tsens_legacy_calibration_format tsens_8974_nvmem = {
6343
.base_len = 8,
6444
.base_shift = 2,
@@ -103,22 +83,6 @@ struct tsens_legacy_calibration_format tsens_8974_backup_nvmem = {
10383
},
10484
};
10585

106-
struct tsens_legacy_calibration_format tsens_9607_nvmem = {
107-
.base_len = 8,
108-
.base_shift = 2,
109-
.sp_len = 6,
110-
.mode = { 2, 20 },
111-
.invalid = { 2, 22 },
112-
.base = { { 0, 0 }, { 2, 12 } },
113-
.sp = {
114-
{ { 0, 8 }, { 0, 14 } },
115-
{ { 0, 20 }, { 0, 26 } },
116-
{ { 1, 0 }, { 1, 6 } },
117-
{ { 1, 12 }, { 1, 18 } },
118-
{ { 2, 0 }, { 2, 6 } },
119-
},
120-
};
121-
12286
static int calibrate_8916(struct tsens_priv *priv)
12387
{
12488
u32 p1[5], p2[5];

drivers/thermal/qcom/tsens-v1.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,6 @@ struct tsens_legacy_calibration_format tsens_qcs404_nvmem = {
4242
},
4343
};
4444

45-
struct tsens_legacy_calibration_format tsens_8976_nvmem = {
46-
.base_len = 8,
47-
.base_shift = 2,
48-
.sp_len = 6,
49-
.mode = { 4, 0 },
50-
.invalid = { 4, 2 },
51-
.base = { { 0, 0 }, { 2, 8 } },
52-
.sp = {
53-
{ { 0, 8 }, { 0, 14 } },
54-
{ { 0, 20 }, { 0, 26 } },
55-
{ { 1, 0 }, { 1, 6 } },
56-
{ { 1, 12 }, { 1, 18 } },
57-
{ { 2, 8 }, { 2, 14 } },
58-
{ { 2, 20 }, { 2, 26 } },
59-
{ { 3, 0 }, { 3, 6 } },
60-
{ { 3, 12 }, { 3, 18 } },
61-
{ { 4, 2 }, { 4, 9 } },
62-
{ { 4, 14 }, { 4, 21 } },
63-
{ { 4, 26 }, { 5, 1 } },
64-
},
65-
};
66-
6745
static int calibrate_v1(struct tsens_priv *priv)
6846
{
6947
u32 p1[10], p2[10];

0 commit comments

Comments
 (0)