commit | 7fa4776948d5a31f8362223ecc2fbf622d1df4cb | [log] [tgz] |
---|---|---|
author | Gerard Marull-Paretas <gerard.marull@nordicsemi.no> | Thu Apr 27 09:24:26 2023 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Apr 28 20:38:17 2023 +0200 |
tree | c8aae8321759454a25e773192b9080529eedbad5 | |
parent | 054bb26cc55f32a9bdb2cdbc35d3551a352dda38 [diff] |
drivers: regulator: fixed: refactor initialization code. In some cases, the enable pin may be already enabled by a previous stage, e.g. bootloader. Therefore, it is not desirable to disable the pin, as it could cause malfunctioning of the device. Refactor init procedure so that we pick the right GPIO flags during the first configuration stage. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>