hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/phy/qualcomm/phy-qcom-usb-hs.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * Copyright (C) 2016 Linaro Ltd
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85 #include <linux/module.h>
96 #include <linux/ulpi/driver.h>
....@@ -42,7 +39,8 @@
4239 struct notifier_block vbus_notify;
4340 };
4441
45
-static int qcom_usb_hs_phy_set_mode(struct phy *phy, enum phy_mode mode)
42
+static int qcom_usb_hs_phy_set_mode(struct phy *phy,
43
+ enum phy_mode mode, int submode)
4644 {
4745 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy);
4846 u8 addr;
....@@ -55,7 +53,7 @@
5553 case PHY_MODE_USB_OTG:
5654 case PHY_MODE_USB_HOST:
5755 val |= ULPI_INT_IDGRD;
58
- /* fall through */
56
+ fallthrough;
5957 case PHY_MODE_USB_DEVICE:
6058 val |= ULPI_INT_SESS_VALID;
6159 default: