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-dbg.c | |
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-dbg.c')
-rw-r--r-- | drivers/usb/host/xhci-dbg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c index 264c38059d4a..6473cbf329f9 100644 --- a/drivers/usb/host/xhci-dbg.c +++ b/drivers/usb/host/xhci-dbg.c | |||
@@ -55,7 +55,7 @@ void xhci_dbg_regs(struct xhci_hcd *xhci) | |||
55 | xhci_dbg(xhci, "// Doorbell array at %p:\n", xhci->dba); | 55 | xhci_dbg(xhci, "// Doorbell array at %p:\n", xhci->dba); |
56 | } | 56 | } |
57 | 57 | ||
58 | void xhci_print_cap_regs(struct xhci_hcd *xhci) | 58 | static void xhci_print_cap_regs(struct xhci_hcd *xhci) |
59 | { | 59 | { |
60 | u32 temp; | 60 | u32 temp; |
61 | 61 | ||
@@ -106,7 +106,7 @@ void xhci_print_cap_regs(struct xhci_hcd *xhci) | |||
106 | xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK); | 106 | xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK); |
107 | } | 107 | } |
108 | 108 | ||
109 | void xhci_print_command_reg(struct xhci_hcd *xhci) | 109 | static void xhci_print_command_reg(struct xhci_hcd *xhci) |
110 | { | 110 | { |
111 | u32 temp; | 111 | u32 temp; |
112 | 112 | ||
@@ -124,7 +124,7 @@ void xhci_print_command_reg(struct xhci_hcd *xhci) | |||
124 | (temp & CMD_LRESET) ? "not " : ""); | 124 | (temp & CMD_LRESET) ? "not " : ""); |
125 | } | 125 | } |
126 | 126 | ||
127 | void xhci_print_status(struct xhci_hcd *xhci) | 127 | static void xhci_print_status(struct xhci_hcd *xhci) |
128 | { | 128 | { |
129 | u32 temp; | 129 | u32 temp; |
130 | 130 | ||
@@ -138,14 +138,14 @@ void xhci_print_status(struct xhci_hcd *xhci) | |||
138 | (temp & STS_HALT) ? "halted" : "running"); | 138 | (temp & STS_HALT) ? "halted" : "running"); |
139 | } | 139 | } |
140 | 140 | ||
141 | void xhci_print_op_regs(struct xhci_hcd *xhci) | 141 | static void xhci_print_op_regs(struct xhci_hcd *xhci) |
142 | { | 142 | { |
143 | xhci_dbg(xhci, "xHCI operational registers at %p:\n", xhci->op_regs); | 143 | xhci_dbg(xhci, "xHCI operational registers at %p:\n", xhci->op_regs); |
144 | xhci_print_command_reg(xhci); | 144 | xhci_print_command_reg(xhci); |
145 | xhci_print_status(xhci); | 145 | xhci_print_status(xhci); |
146 | } | 146 | } |
147 | 147 | ||
148 | void xhci_print_ports(struct xhci_hcd *xhci) | 148 | static void xhci_print_ports(struct xhci_hcd *xhci) |
149 | { | 149 | { |
150 | u32 __iomem *addr; | 150 | u32 __iomem *addr; |
151 | int i, j; | 151 | int i, j; |
@@ -340,13 +340,13 @@ void xhci_dbg_ring_ptrs(struct xhci_hcd *xhci, struct xhci_ring *ring) | |||
340 | { | 340 | { |
341 | xhci_dbg(xhci, "Ring deq = %p (virt), 0x%llx (dma)\n", | 341 | xhci_dbg(xhci, "Ring deq = %p (virt), 0x%llx (dma)\n", |
342 | ring->dequeue, | 342 | ring->dequeue, |
343 | (unsigned long long)trb_virt_to_dma(ring->deq_seg, | 343 | (unsigned long long)xhci_trb_virt_to_dma(ring->deq_seg, |
344 | ring->dequeue)); | 344 | ring->dequeue)); |
345 | xhci_dbg(xhci, "Ring deq updated %u times\n", | 345 | xhci_dbg(xhci, "Ring deq updated %u times\n", |
346 | ring->deq_updates); | 346 | ring->deq_updates); |
347 | xhci_dbg(xhci, "Ring enq = %p (virt), 0x%llx (dma)\n", | 347 | xhci_dbg(xhci, "Ring enq = %p (virt), 0x%llx (dma)\n", |
348 | ring->enqueue, | 348 | ring->enqueue, |
349 | (unsigned long long)trb_virt_to_dma(ring->enq_seg, | 349 | (unsigned long long)xhci_trb_virt_to_dma(ring->enq_seg, |
350 | ring->enqueue)); | 350 | ring->enqueue)); |
351 | xhci_dbg(xhci, "Ring enq updated %u times\n", | 351 | xhci_dbg(xhci, "Ring enq updated %u times\n", |
352 | ring->enq_updates); | 352 | ring->enq_updates); |