mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
USB: fix compilation warning
This commit is contained in:
@@ -443,11 +443,10 @@ static int dwc_otg_hcd_sleep_cb(void *p)
|
||||
*
|
||||
* @param p void pointer to the <code>struct usb_hcd</code>
|
||||
*/
|
||||
extern inline struct usb_hcd *dwc_otg_hcd_to_hcd(dwc_otg_hcd_t *dwc_otg_hcd);
|
||||
static int dwc_otg_hcd_rem_wakeup_cb(void *p)
|
||||
{
|
||||
dwc_otg_hcd_t *dwc_otg_hcd = p;
|
||||
struct usb_hcd *hcd = dwc_otg_hcd_to_hcd(dwc_otg_hcd);
|
||||
struct usb_hcd *hcd = dwc_otg_hcd_get_priv_data(dwc_otg_hcd);
|
||||
|
||||
if (dwc_otg_hcd->core_if->lx_state == DWC_OTG_L2) {
|
||||
dwc_otg_hcd->flags.b.port_suspend_change = 1;
|
||||
|
||||
@@ -308,7 +308,6 @@ int32_t dwc_otg_hcd_handle_perio_tx_fifo_empty_intr(dwc_otg_hcd_t *dwc_otg_hcd)
|
||||
return 1;
|
||||
}
|
||||
|
||||
extern inline struct usb_hcd *dwc_otg_hcd_to_hcd(dwc_otg_hcd_t *dwc_otg_hcd);
|
||||
/** There are multiple conditions that can cause a port interrupt. This function
|
||||
* determines which interrupt conditions have occurred and handles them
|
||||
* appropriately. */
|
||||
@@ -317,7 +316,7 @@ int32_t dwc_otg_hcd_handle_port_intr(dwc_otg_hcd_t *dwc_otg_hcd)
|
||||
int retval = 0;
|
||||
hprt0_data_t hprt0;
|
||||
hprt0_data_t hprt0_modify;
|
||||
struct usb_hcd *hcd = dwc_otg_hcd_to_hcd(dwc_otg_hcd);
|
||||
struct usb_hcd *hcd = dwc_otg_hcd_get_priv_data(dwc_otg_hcd);
|
||||
struct usb_bus *bus = hcd_to_bus(hcd);
|
||||
|
||||
hprt0.d32 = DWC_READ_REG32(dwc_otg_hcd->core_if->host_if->hprt0);
|
||||
|
||||
@@ -146,13 +146,11 @@ static inline dwc_otg_hcd_t *hcd_to_dwc_otg_hcd(struct usb_hcd *hcd)
|
||||
}
|
||||
|
||||
/** Gets the struct usb_hcd that contains a dwc_otg_hcd_t. */
|
||||
inline struct usb_hcd *dwc_otg_hcd_to_hcd(dwc_otg_hcd_t *dwc_otg_hcd)
|
||||
static inline struct usb_hcd *dwc_otg_hcd_to_hcd(dwc_otg_hcd_t *dwc_otg_hcd)
|
||||
{
|
||||
return dwc_otg_hcd_get_priv_data(dwc_otg_hcd);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(dwc_otg_hcd_to_hcd);
|
||||
|
||||
/** Gets the usb_host_endpoint associated with an URB. */
|
||||
inline struct usb_host_endpoint *dwc_urb_to_endpoint(struct urb *urb)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user