mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +00:00
thermal/drivers/tsens: Drop msm8976-specific defines
Drop msm8976-specific defines, which duplicate generic ones.
Fixes: 0e58029017
("thermal: qcom: tsens-v1: Add support for MSM8956 and MSM8976")
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230101194034.831222-6-dmitry.baryshkov@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
parent
ca7b70b19e
commit
3bf0ea99e2
@ -78,11 +78,6 @@
|
||||
|
||||
#define MSM8976_CAL_SEL_MASK 0x3
|
||||
|
||||
#define MSM8976_CAL_DEGC_PT1 30
|
||||
#define MSM8976_CAL_DEGC_PT2 120
|
||||
#define MSM8976_SLOPE_FACTOR 1000
|
||||
#define MSM8976_SLOPE_DEFAULT 3200
|
||||
|
||||
/* eeprom layout data for qcs404/405 (v1) */
|
||||
#define BASE0_MASK 0x000007f8
|
||||
#define BASE1_MASK 0x0007f800
|
||||
@ -160,8 +155,8 @@ static void compute_intercept_slope_8976(struct tsens_priv *priv,
|
||||
priv->sensor[10].slope = 3286;
|
||||
|
||||
for (i = 0; i < priv->num_sensors; i++) {
|
||||
priv->sensor[i].offset = (p1[i] * MSM8976_SLOPE_FACTOR) -
|
||||
(MSM8976_CAL_DEGC_PT1 *
|
||||
priv->sensor[i].offset = (p1[i] * SLOPE_FACTOR) -
|
||||
(CAL_DEGC_PT1 *
|
||||
priv->sensor[i].slope);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user