928e8fd695d74b49ba3fe905257a7fb655c0bfa3
[openwrt/staging/hauke.git] / target / linux / ipq806x / patches-5.10 / 104-8-drivers-thermal-tsens-Add-support-for-ipq8064-tsens.patch
1 From 0d0c22a59bf2672b57e23da9a9ea743e91b71f54 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Sat, 25 Jul 2020 19:55:57 +0200
4 Subject: [PATCH 08/10] drivers: thermal: tsens: Add support for ipq8064-tsens
5
6 Add support for tsens present in ipq806x SoCs based on generic msm8960
7 tsens driver.
8
9 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
10 Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
11 ---
12 drivers/thermal/qcom/tsens.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15 diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
16 index 38b9936def1a..58073dc5d30b 100644
17 --- a/drivers/thermal/qcom/tsens.c
18 +++ b/drivers/thermal/qcom/tsens.c
19 @@ -966,6 +966,9 @@ static SIMPLE_DEV_PM_OPS(tsens_pm_ops, tsens_suspend, tsens_resume);
20
21 static const struct of_device_id tsens_table[] = {
22 {
23 + .compatible = "qcom,ipq8064-tsens",
24 + .data = &data_8960,
25 + }, {
26 .compatible = "qcom,msm8916-tsens",
27 .data = &data_8916,
28 }, {
29 --
30 2.30.2
31