10f1e36b58b7f513b59c74602da542714af91a6a
[openwrt/staging/neocturne.git] /
1 From c7e077e921fa94e0c06c8d14af6c0504c8a5f4bd Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Sat, 22 Oct 2022 14:56:56 +0200
4 Subject: [PATCH 2/3] thermal/drivers/qcom/tsens: Fix wrong version id
5 dbg_version_show
6
7 For VER_0 the version was incorrectly reported as 0.1.0.
8
9 Fix that and correctly report the major version for this old tsens
10 revision.
11
12 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 Link: https://lore.kernel.org/r/20221022125657.22530-3-ansuelsmth@gmail.com
14 Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
15 ---
16 drivers/thermal/qcom/tsens.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/drivers/thermal/qcom/tsens.c
20 +++ b/drivers/thermal/qcom/tsens.c
21 @@ -692,7 +692,7 @@ static int dbg_version_show(struct seq_f
22 return ret;
23 seq_printf(s, "%d.%d.%d\n", maj_ver, min_ver, step_ver);
24 } else {
25 - seq_puts(s, "0.1.0\n");
26 + seq_printf(s, "0.%d.0\n", priv->feat->ver_major);
27 }
28
29 return 0;