Skip to content

Commit c7e077e

Browse files
AnsuelDaniel Lezcano
authored andcommitted
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>
1 parent de48d87 commit c7e077e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thermal/qcom/tsens.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ static int dbg_version_show(struct seq_file *s, void *data)
713713
return ret;
714714
seq_printf(s, "%d.%d.%d\n", maj_ver, min_ver, step_ver);
715715
} else {
716-
seq_puts(s, "0.1.0\n");
716+
seq_printf(s, "0.%d.0\n", priv->feat->ver_major);
717717
}
718718

719719
return 0;

0 commit comments

Comments
 (0)