commit | a263bcc5e7bb95832d89a66130a3091373401f55 | [log] [tgz] |
---|---|---|
author | Heiko Stübner <heiko@sntech.de> | Sat May 06 21:21:29 2017 +0200 |
committer | Simon Glass <sjg@chromium.org> | Wed Jun 07 07:29:19 2017 -0600 |
tree | ed73348a673044d374a2b8e633fec21a2aceb798 | |
parent | 9eefd0f1346767b3e7dd722c9b1d88223051003d [diff] |
power: rk808: fix ldo register offset Till now get_ldo_reg did a return &rk808_ldo[num - 1]; to return the ldo register offset but didn't take into account that its calling functions already created the ldo as ldo = dev->driver_data - 1. This resulted in the setting for ldo8 writing to the register of ldo7 and so on. So fix this and get the correct ldo register data. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Simon Glass <sjg@chromium.org>