diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2020-03-12 15:36:58 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-03-20 14:17:48 +0300 |
commit | 0aef1ee5af9ee9bf8c9267f7b8c10dafc057adf9 (patch) | |
tree | 30e1f9baa6f7b6f3708c1bce39d15c6ec58ba40c /drivers/thermal/qcom/tsens-8960.c | |
parent | 39056e8a989ef52486e063e34b4822b341e47b0e (diff) | |
download | linux-0aef1ee5af9ee9bf8c9267f7b8c10dafc057adf9.tar.xz |
drivers: thermal: tsens: De-constify struct tsens_features
struct tsens_features is currently initialized as part of platform data
at compile-time and not modifiable. We now have some usecases in feature
detection across IP versions where it is more flexible to update the
features after probing registers.
Remove const qualifier from tsens_features and the encapsulating
tsens_plat_data.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/2919a72220470366ae11e0bb5330a4ea39838f71.1584015867.git.amit.kucheria@linaro.org
Diffstat (limited to 'drivers/thermal/qcom/tsens-8960.c')
-rw-r--r-- | drivers/thermal/qcom/tsens-8960.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index fb77acb8d13b..a383a57cfbbc 100644 --- a/drivers/thermal/qcom/tsens-8960.c +++ b/drivers/thermal/qcom/tsens-8960.c @@ -279,7 +279,7 @@ static const struct tsens_ops ops_8960 = { .resume = resume_8960, }; -const struct tsens_plat_data data_8960 = { +struct tsens_plat_data data_8960 = { .num_sensors = 11, .ops = &ops_8960, }; |