aboutsummaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorPatrick Delaunay2019-06-21 15:26:53 +0200
committerPatrick Delaunay2019-07-12 11:50:57 +0200
commit92be6834da54efaa61ebee70a7dfd7005a7b9bf5 (patch)
tree4221edb00f36f32258faa620ffaa044563918c8d /drivers/power
parent91ca91e855e0e2a390c6a034173d4c2755f55c35 (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/regulator/stpmic1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c
index 50ef2a21d18..1e3f96f3a08 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;