mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
power: stpmic1: Fix warnings when compiling with W=1
This patch solves the following warnings: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
91ca91e855
commit
92be6834da
1 changed files with 1 additions and 0 deletions
|
@ -422,6 +422,7 @@ static int stpmic1_ldo_set_mode(struct udevice *dev, int mode)
|
|||
case STPMIC1_LDO_MODE_SINK_SOURCE:
|
||||
ret &= ~STPMIC1_LDO12356_VOUT_MASK;
|
||||
ret |= STPMIC1_LDO3_DDR_SEL << STPMIC1_LDO12356_VOUT_SHIFT;
|
||||
/* fallthrough */
|
||||
case STPMIC1_LDO_MODE_NORMAL:
|
||||
ret &= ~STPMIC1_LDO3_MODE;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue