[PATCH 4.14 50/55] thermal/drivers/hisi: Encapsulate register writes into helpers