004-v6.2-02-thermal-drivers-qcom-tsens-Fix-wrong-version-id-dbg_.patch 976 B

1234567891011121314151617181920212223242526272829
  1. From c7e077e921fa94e0c06c8d14af6c0504c8a5f4bd Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  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. For VER_0 the version was incorrectly reported as 0.1.0.
  7. Fix that and correctly report the major version for this old tsens
  8. revision.
  9. Signed-off-by: Christian Marangi <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. Signed-off-by: Daniel Lezcano <[email protected]>
  12. ---
  13. drivers/thermal/qcom/tsens.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/thermal/qcom/tsens.c
  16. +++ b/drivers/thermal/qcom/tsens.c
  17. @@ -692,7 +692,7 @@ static int dbg_version_show(struct seq_f
  18. return ret;
  19. seq_printf(s, "%d.%d.%d\n", maj_ver, min_ver, step_ver);
  20. } else {
  21. - seq_puts(s, "0.1.0\n");
  22. + seq_printf(s, "0.%d.0\n", priv->feat->ver_major);
  23. }
  24. return 0;