| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | #include <linux/module.h> |
|---|
| 9 | 6 | #include <linux/ulpi/driver.h> |
|---|
| .. | .. |
|---|
| 42 | 39 | struct notifier_block vbus_notify; |
|---|
| 43 | 40 | }; |
|---|
| 44 | 41 | |
|---|
| 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) |
|---|
| 46 | 44 | { |
|---|
| 47 | 45 | struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); |
|---|
| 48 | 46 | u8 addr; |
|---|
| .. | .. |
|---|
| 55 | 53 | case PHY_MODE_USB_OTG: |
|---|
| 56 | 54 | case PHY_MODE_USB_HOST: |
|---|
| 57 | 55 | val |= ULPI_INT_IDGRD; |
|---|
| 58 | | - /* fall through */ |
|---|
| 56 | + fallthrough; |
|---|
| 59 | 57 | case PHY_MODE_USB_DEVICE: |
|---|
| 60 | 58 | val |= ULPI_INT_SESS_VALID; |
|---|
| 61 | 59 | default: |
|---|