aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/qualcomm/phy-qcom-usb-hs.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-03-05 04:02:19 -0600
committerVinod Koul <vkoul@kernel.org>2021-03-15 15:57:08 +0530
commitd0dde32dda5dd63a785f1b0d4a56055110f00e37 (patch)
tree303a1b3f6d8dddeed2c417e13478ae167fa174d6 /drivers/phy/qualcomm/phy-qcom-usb-hs.c
parentphy: ti: j721e-wiz: add missing of_node_put (diff)
downloadlinux-dev-d0dde32dda5dd63a785f1b0d4a56055110f00e37.tar.xz
linux-dev-d0dde32dda5dd63a785f1b0d4a56055110f00e37.zip
phy: qcom-usb-hs: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20210305100219.GA142595@embeddedor Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/qualcomm/phy-qcom-usb-hs.c')
-rw-r--r--drivers/phy/qualcomm/phy-qcom-usb-hs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-usb-hs.c b/drivers/phy/qualcomm/phy-qcom-usb-hs.c
index 327df1a99f77..5c6c17673396 100644
--- a/drivers/phy/qualcomm/phy-qcom-usb-hs.c
+++ b/drivers/phy/qualcomm/phy-qcom-usb-hs.c
@@ -56,6 +56,7 @@ static int qcom_usb_hs_phy_set_mode(struct phy *phy,
fallthrough;
case PHY_MODE_USB_DEVICE:
val |= ULPI_INT_SESS_VALID;
+ break;
default:
break;
}