projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de48d87
)
thermal/drivers/qcom/tsens: Fix wrong version id dbg_version_show
author
Christian Marangi
<ansuelsmth@gmail.com>
Sat, 22 Oct 2022 12:56:56 +0000
(14:56 +0200)
committer
Daniel Lezcano
<daniel.lezcano@kernel.org>
Wed, 14 Dec 2022 14:25:40 +0000
(15:25 +0100)
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>
drivers/thermal/qcom/tsens.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/qcom/tsens.c
b/drivers/thermal/qcom/tsens.c
index 3ac780404c72ce41602eb4dc81c48d763dd7b83e..5f8d8f04351eb33d577c26708bd13f0f80149c7f 100644
(file)
--- 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_p
uts(s, "0.1.0\n"
);
+ seq_p
rintf(s, "0.%d.0\n", priv->feat->ver_major
);
}
return 0;