ANDROID: GKI: usb: phy: Fix ABI diff due to usb_phy.drive_dp_pulse
This is a partial cherry-pick of just the header changes.
change-Id: Ib1e18a8d40301c553efe0919e11c89ad87d9cfca
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Bug: 154275330
(cherry picked from commit b1caa80952)
Signed-off-by: Saravana Kannan <saravanak@google.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
7edd303073
commit
a34e2697fd
@@ -171,6 +171,7 @@ struct usb_phy {
|
||||
|
||||
/* reset the PHY clocks */
|
||||
int (*reset)(struct usb_phy *x);
|
||||
int (*drive_dp_pulse)(struct usb_phy *x, unsigned int pulse_width);
|
||||
};
|
||||
|
||||
/* for board-specific init logic */
|
||||
@@ -238,6 +239,15 @@ usb_phy_reset(struct usb_phy *x)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
usb_phy_drive_dp_pulse(struct usb_phy *x, unsigned int pulse_width)
|
||||
{
|
||||
if (x && x->drive_dp_pulse)
|
||||
return x->drive_dp_pulse(x, pulse_width);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* for usb host and peripheral controller drivers */
|
||||
#if IS_ENABLED(CONFIG_USB_PHY)
|
||||
extern struct usb_phy *usb_get_phy(enum usb_phy_type type);
|
||||
|
||||
Reference in New Issue
Block a user