diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-10-22 15:56:56 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2022-12-14 17:25:40 +0300 |
commit | c7e077e921fa94e0c06c8d14af6c0504c8a5f4bd (patch) | |
tree | ff8d42ee5f8fd4436bbe872e92f17baf2361fe55 /drivers/thermal/qcom | |
parent | de48d8766afcd97d147699aaff78a338081c9973 (diff) | |
download | linux-c7e077e921fa94e0c06c8d14af6c0504c8a5f4bd.tar.xz |
thermal/drivers/qcom/tsens: Fix wrong version id dbg_version_show
For VER_0 the version was incorrectly reported as 0.1.0.
Fix that and correctly report the major version for this old tsens
revision.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20221022125657.22530-3-ansuelsmth@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Diffstat (limited to 'drivers/thermal/qcom')
-rw-r--r-- | drivers/thermal/qcom/tsens.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 3ac780404c72..5f8d8f04351e 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -713,7 +713,7 @@ static int dbg_version_show(struct seq_file *s, void *data) return ret; seq_printf(s, "%d.%d.%d\n", maj_ver, min_ver, step_ver); } else { - seq_puts(s, "0.1.0\n"); + seq_printf(s, "0.%d.0\n", priv->feat->ver_major); } return 0; |