diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-01-20 17:55:55 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 10:39:07 -0500 |
commit | ea0b1fabc77420261c57c4ac4f0ea384f5a8c438 (patch) | |
tree | 3cfca1c9e0cf7ac7450a98a0d8f2a6c06db1aae1 /drivers/usb/host | |
parent | cdd36e872c55603af60a9dc1f9e4b3de31ffc21a (diff) |
usb: isp1760: Prefix driver data structures with isp1760_
The slotinfo and memory_chunk structures are specific to the driver and
defined in a header file. Prefix them with isp1760_ to avoid namespace
clashes.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/isp1760-hcd.c | 15 | ||||
-rw-r--r-- | drivers/usb/host/isp1760-hcd.h | 4 |
2 files changed, 10 insertions, 9 deletions
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c index 55c0add700b1..99f56c6686e3 100644 --- a/drivers/usb/host/isp1760-hcd.c +++ b/drivers/usb/host/isp1760-hcd.c | |||
@@ -44,11 +44,11 @@ struct isp1760_hcd { | |||
44 | 44 | ||
45 | u32 hcs_params; | 45 | u32 hcs_params; |
46 | spinlock_t lock; | 46 | spinlock_t lock; |
47 | struct slotinfo atl_slots[32]; | 47 | struct isp1760_slotinfo atl_slots[32]; |
48 | int atl_done_map; | 48 | int atl_done_map; |
49 | struct slotinfo int_slots[32]; | 49 | struct isp1760_slotinfo int_slots[32]; |
50 | int int_done_map; | 50 | int int_done_map; |
51 | struct memory_chunk memory_pool[BLOCKS]; | 51 | struct isp1760_memory_chunk memory_pool[BLOCKS]; |
52 | struct list_head qh_list[QH_END]; | 52 | struct list_head qh_list[QH_END]; |
53 | 53 | ||
54 | /* periodic schedule support */ | 54 | /* periodic schedule support */ |
@@ -743,8 +743,9 @@ static void qtd_free(struct isp1760_qtd *qtd) | |||
743 | } | 743 | } |
744 | 744 | ||
745 | static void start_bus_transfer(struct usb_hcd *hcd, u32 ptd_offset, int slot, | 745 | static void start_bus_transfer(struct usb_hcd *hcd, u32 ptd_offset, int slot, |
746 | struct slotinfo *slots, struct isp1760_qtd *qtd, | 746 | struct isp1760_slotinfo *slots, |
747 | struct isp1760_qh *qh, struct ptd *ptd) | 747 | struct isp1760_qtd *qtd, struct isp1760_qh *qh, |
748 | struct ptd *ptd) | ||
748 | { | 749 | { |
749 | struct isp1760_hcd *priv = hcd_to_priv(hcd); | 750 | struct isp1760_hcd *priv = hcd_to_priv(hcd); |
750 | int skip_map; | 751 | int skip_map; |
@@ -857,7 +858,7 @@ static void enqueue_qtds(struct usb_hcd *hcd, struct isp1760_qh *qh) | |||
857 | { | 858 | { |
858 | struct isp1760_hcd *priv = hcd_to_priv(hcd); | 859 | struct isp1760_hcd *priv = hcd_to_priv(hcd); |
859 | int ptd_offset; | 860 | int ptd_offset; |
860 | struct slotinfo *slots; | 861 | struct isp1760_slotinfo *slots; |
861 | int curr_slot, free_slot; | 862 | int curr_slot, free_slot; |
862 | int n; | 863 | int n; |
863 | struct ptd ptd; | 864 | struct ptd ptd; |
@@ -1097,7 +1098,7 @@ static void handle_done_ptds(struct usb_hcd *hcd) | |||
1097 | struct isp1760_qh *qh; | 1098 | struct isp1760_qh *qh; |
1098 | int slot; | 1099 | int slot; |
1099 | int state; | 1100 | int state; |
1100 | struct slotinfo *slots; | 1101 | struct isp1760_slotinfo *slots; |
1101 | u32 ptd_offset; | 1102 | u32 ptd_offset; |
1102 | struct isp1760_qtd *qtd; | 1103 | struct isp1760_qtd *qtd; |
1103 | int modified; | 1104 | int modified; |
diff --git a/drivers/usb/host/isp1760-hcd.h b/drivers/usb/host/isp1760-hcd.h index 7fc510f9bf6e..3056bcd8a393 100644 --- a/drivers/usb/host/isp1760-hcd.h +++ b/drivers/usb/host/isp1760-hcd.h | |||
@@ -103,7 +103,7 @@ struct ptd { | |||
103 | #define ATL_PTD_OFFSET 0x0c00 | 103 | #define ATL_PTD_OFFSET 0x0c00 |
104 | #define PAYLOAD_OFFSET 0x1000 | 104 | #define PAYLOAD_OFFSET 0x1000 |
105 | 105 | ||
106 | struct slotinfo { | 106 | struct isp1760_slotinfo { |
107 | struct isp1760_qh *qh; | 107 | struct isp1760_qh *qh; |
108 | struct isp1760_qtd *qtd; | 108 | struct isp1760_qtd *qtd; |
109 | unsigned long timestamp; | 109 | unsigned long timestamp; |
@@ -125,7 +125,7 @@ struct slotinfo { | |||
125 | #define ISP1760_FLAG_INTR_EDGE_TRIG 0x00000100 /* Interrupt edge triggered */ | 125 | #define ISP1760_FLAG_INTR_EDGE_TRIG 0x00000100 /* Interrupt edge triggered */ |
126 | 126 | ||
127 | /* chip memory management */ | 127 | /* chip memory management */ |
128 | struct memory_chunk { | 128 | struct isp1760_memory_chunk { |
129 | unsigned int start; | 129 | unsigned int start; |
130 | unsigned int size; | 130 | unsigned int size; |
131 | unsigned int free; | 131 | unsigned int free; |