[PATCH 6.11 038/695] thermal: core: Fold two functions into their respective callers