Browse Source

sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected

sunxi_usbc_vbus_detect was renamed to sunxi_usb_phy_vbus_detect but
g_dnl_board_usb_cable_connected was still using the old name, breaking the build
when USB gadget is enabled.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Paul Kocialkowski 10 năm trước cách đây
mục cha
commit
5bfdca0d4c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      board/sunxi/board.c

+ 1 - 1
board/sunxi/board.c

@@ -476,7 +476,7 @@ static struct musb_hdrc_platform_data musb_plat = {
 #ifdef CONFIG_USB_GADGET
 int g_dnl_board_usb_cable_connected(void)
 {
-	return sunxi_usbc_vbus_detect(0);
+	return sunxi_usb_phy_vbus_detect(0);
 }
 #endif