USB: fix compilation warning

This commit is contained in:
wlf
2014-09-17 19:23:52 +08:00
parent 38050da31a
commit ad9774c22b
3 changed files with 3 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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)
{