Message ID | 1561123618-2029-15-git-send-email-patrick.delaunay@st.com |
---|---|
State | Accepted |
Commit | 92be6834da54efaa61ebee70a7dfd7005a7b9bf5 |
Delegated to: | Patrick Delaunay |
Headers | show |
Series | [U-Boot,01/20] stm32mp1: Fix warnings when compiling with W=1 | expand |
Hi, > From: Patrick DELAUNAY <patrick.delaunay@st.com> > Sent: vendredi 21 juin 2019 15:27 > > This patch solves the following warnings: > warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> > --- > > drivers/power/regulator/stpmic1.c | 1 + > 1 file changed, 1 insertion(+) > Applied to u-boot-stm32/master, thanks! Patrick
diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c index 50ef2a2..1e3f96f 100644 --- a/drivers/power/regulator/stpmic1.c +++ b/drivers/power/regulator/stpmic1.c @@ -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;
This patch solves the following warnings: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> --- drivers/power/regulator/stpmic1.c | 1 + 1 file changed, 1 insertion(+)