[PATCH 6.1 148/185] thermal: intel: hfi: Refactor enabling code into helper functions