diff options
author | Robert Marko <robimarko@gmail.com> | 2022-08-19 01:02:43 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2022-12-14 17:25:40 +0300 |
commit | f63baced3839f591db76c227e09d47001373d6db (patch) | |
tree | d8801f3b02a06c6c330286d9d94bbbfe12c05f4a /drivers/thermal/qcom/tsens-v0_1.c | |
parent | 4360af35273b742ffc6605ce44f37ac654272443 (diff) | |
download | linux-f63baced3839f591db76c227e09d47001373d6db.tar.xz |
thermal/drivers/tsens: Allow configuring min and max trips
IPQ8074 and IPQ6018 dont support negative trip temperatures and support
up to 204 degrees C as the max trip temperature.
So, instead of always setting the -40 as min and 120 degrees C as max
allow it to be configured as part of the features.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220818220245.338396-3-robimarko@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/qcom/tsens-v0_1.c')
-rw-r--r-- | drivers/thermal/qcom/tsens-v0_1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c index 8cdc3d135d6a..04d012e4f728 100644 --- a/drivers/thermal/qcom/tsens-v0_1.c +++ b/drivers/thermal/qcom/tsens-v0_1.c @@ -543,6 +543,8 @@ static struct tsens_features tsens_v0_1_feat = { .adc = 1, .srot_split = 1, .max_sensors = 11, + .trip_min_temp = -40000, + .trip_max_temp = 120000, }; static const struct reg_field tsens_v0_1_regfields[MAX_REGFIELDS] = { |