[PATCH 6.6 274/331] thermal: intel: hfi: Refactor enabling code into helper functions