dm: pmic: Correct the pmic_reg_write() implementation