From 093a6c67005148ae32a5c9e4553491b9f5c2457b Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:40:51 +0000
Subject: [PATCH] disable kernel build waring
---
kernel/include/linux/usb/phy.h | 37 ++-----------------------------------
1 files changed, 2 insertions(+), 35 deletions(-)
diff --git a/kernel/include/linux/usb/phy.h b/kernel/include/linux/usb/phy.h
index b1f7d2e..888d2fd 100644
--- a/kernel/include/linux/usb/phy.h
+++ b/kernel/include/linux/usb/phy.h
@@ -13,18 +13,8 @@
#include <linux/extcon.h>
#include <linux/notifier.h>
#include <linux/usb.h>
+#include <linux/android_kabi.h>
#include <uapi/linux/usb/charger.h>
-
-#define ENABLE_DP_MANUAL_PULLUP BIT(0)
-#define ENABLE_SECONDARY_PHY BIT(1)
-#define PHY_HOST_MODE BIT(2)
-#define PHY_CHARGER_CONNECTED BIT(3)
-#define PHY_VBUS_VALID_OVERRIDE BIT(4)
-#define DEVICE_IN_SS_MODE BIT(5)
-#define PHY_LANE_A BIT(6)
-#define PHY_LANE_B BIT(7)
-#define PHY_HSFS_MODE BIT(8)
-#define PHY_LS_MODE BIT(9)
enum usb_phy_interface {
USBPHY_INTERFACE_MODE_UNKNOWN,
@@ -48,8 +38,6 @@
USB_PHY_TYPE_UNDEFINED,
USB_PHY_TYPE_USB2,
USB_PHY_TYPE_USB3,
- USB_PHY_TYPE_USB3_OR_DP,
- USB_PHY_TYPE_USB3_AND_DP,
};
/* OTG defines lots of enumeration states before device reset */
@@ -60,7 +48,6 @@
OTG_STATE_B_IDLE,
OTG_STATE_B_SRP_INIT,
OTG_STATE_B_PERIPHERAL,
- OTG_STATE_B_SUSPEND,
/* extra dual-role default-b states */
OTG_STATE_B_WAIT_ACON,
@@ -170,9 +157,7 @@
*/
enum usb_charger_type (*charger_detect)(struct usb_phy *x);
- /* reset the PHY clocks */
- int (*reset)(struct usb_phy *x);
- int (*drive_dp_pulse)(struct usb_phy *x, unsigned int pulse_width);
+ ANDROID_KABI_RESERVE(1);
};
/* for board-specific init logic */
@@ -229,24 +214,6 @@
return 0;
return x->set_vbus(x, false);
-}
-
-static inline int
-usb_phy_reset(struct usb_phy *x)
-{
- if (x && x->reset)
- return x->reset(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 */
--
Gitblit v1.6.2