commit | 66511fa4a7902fb9ffdffc8c153f1758817fb8a4 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Tue Apr 16 23:29:12 2013 +0800 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Wed Apr 17 15:08:33 2013 +0100 |
tree | 50ff9b1d779a064207a72618a564d2bccabb9b92 | |
parent | 0b665062a1dde470d69ff3bd435b090a119991ab [diff] |
regulator: ab8500-ext: Don't update info->update_val if set_mode() fails This ensures info->update_val status is still correct if set_mode() call fails. Otherwise, get_mode() may return wrong status if a set_mode() call fails. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>