power: stpmic1: Fix warnings when compiling with W=1
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 21 Jun 2019 13:26:53 +0000 (15:26 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Jul 2019 09:50:57 +0000 (11:50 +0200)
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

index 50ef2a21d1816857ef28fb92899f6c34dcea523c..1e3f96f3a0894b62b78865f6c0b9358c907cf026 100644 (file)
@@ -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;