regulator: ab8500: Update info->update_val only when successfully update register
Don't update info->update_val if write to the register fails. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Acked-by: NBengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Showing
想要评论请 注册 或 登录