diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2009-04-29 22:05:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 00:44:50 -0400 |
commit | 23e3be113f42790736319c049c78e5f9a4394c02 (patch) | |
tree | bdbc5fe6350d60202ed04e70a756cade8c92c596 /drivers/usb/host/xhci.h | |
parent | 06e7a1487b61e1ae909c4a4c264b4428c55beb7e (diff) |
USB: xhci: Avoid global namespace pollution.
Make all globally visible functions start with xhci_ and mark functions as
static if they're only called within the same C file. Fix some long lines
while we're at it.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 13c9166e758a..df8778e1cfc6 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1130,18 +1130,22 @@ int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); | |||
1130 | void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); | 1130 | void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); |
1131 | 1131 | ||
1132 | /* xHCI ring, segment, TRB, and TD functions */ | 1132 | /* xHCI ring, segment, TRB, and TD functions */ |
1133 | dma_addr_t trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb); | 1133 | dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb); |
1134 | void ring_cmd_db(struct xhci_hcd *xhci); | 1134 | void xhci_ring_cmd_db(struct xhci_hcd *xhci); |
1135 | void *setup_one_noop(struct xhci_hcd *xhci); | 1135 | void *xhci_setup_one_noop(struct xhci_hcd *xhci); |
1136 | void xhci_handle_event(struct xhci_hcd *xhci); | 1136 | void xhci_handle_event(struct xhci_hcd *xhci); |
1137 | void set_hc_event_deq(struct xhci_hcd *xhci); | 1137 | void xhci_set_hc_event_deq(struct xhci_hcd *xhci); |
1138 | int queue_slot_control(struct xhci_hcd *xhci, u32 trb_type, u32 slot_id); | 1138 | int xhci_queue_slot_control(struct xhci_hcd *xhci, u32 trb_type, u32 slot_id); |
1139 | int queue_address_device(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id); | 1139 | int xhci_queue_address_device(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, |
1140 | int queue_stop_endpoint(struct xhci_hcd *xhci, int slot_id, | 1140 | u32 slot_id); |
1141 | int xhci_queue_stop_endpoint(struct xhci_hcd *xhci, int slot_id, | ||
1141 | unsigned int ep_index); | 1142 | unsigned int ep_index); |
1142 | int queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index); | 1143 | int xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, |
1143 | int queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index); | 1144 | int slot_id, unsigned int ep_index); |
1144 | int queue_configure_endpoint(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id); | 1145 | int xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, |
1146 | int slot_id, unsigned int ep_index); | ||
1147 | int xhci_queue_configure_endpoint(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, | ||
1148 | u32 slot_id); | ||
1145 | 1149 | ||
1146 | /* xHCI roothub code */ | 1150 | /* xHCI roothub code */ |
1147 | int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, | 1151 | int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, |