Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a34e2697 authored by Udipto Goswami's avatar Udipto Goswami Committed by Suren Baghdasaryan
Browse files

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: default avatarUdipto Goswami <ugoswami@codeaurora.org>
Bug: 154275330
(cherry picked from commit b1caa809)
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent 7edd3030
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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);