diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2013-06-24 07:46:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-24 19:16:55 -0400 |
commit | 8e22978c57087aac4d88693278db1cc3e94f1253 (patch) | |
tree | 37394ec786b6e51cdc2c71d4c37aabbf969fe011 /drivers/usb/chipidea/debug.c | |
parent | 38dcdb3a7db757203b71faf0a49710685d897852 (diff) |
usb: chipidea: drop "13xxx" infix
"ci13xxx" is bad for at least the following reasons:
* people often mistype it
* it doesn't add any informational value to the names it's used in
* it needlessly attracts mail filters
This patch replaces it with "ci_hdrc", "ci_udc" or "ci_hw", depending
on the situation. Modules with ci13xxx prefix are also renamed accordingly
and aliases are added for compatibility. Otherwise, no functional changes.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/debug.c')
-rw-r--r-- | drivers/usb/chipidea/debug.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/debug.c index 33566219f3bd..96d899aee473 100644 --- a/drivers/usb/chipidea/debug.c +++ b/drivers/usb/chipidea/debug.c | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | static int ci_device_show(struct seq_file *s, void *data) | 19 | static int ci_device_show(struct seq_file *s, void *data) |
20 | { | 20 | { |
21 | struct ci13xxx *ci = s->private; | 21 | struct ci_hdrc *ci = s->private; |
22 | struct usb_gadget *gadget = &ci->gadget; | 22 | struct usb_gadget *gadget = &ci->gadget; |
23 | 23 | ||
24 | seq_printf(s, "speed = %d\n", gadget->speed); | 24 | seq_printf(s, "speed = %d\n", gadget->speed); |
@@ -58,7 +58,7 @@ static const struct file_operations ci_device_fops = { | |||
58 | */ | 58 | */ |
59 | static int ci_port_test_show(struct seq_file *s, void *data) | 59 | static int ci_port_test_show(struct seq_file *s, void *data) |
60 | { | 60 | { |
61 | struct ci13xxx *ci = s->private; | 61 | struct ci_hdrc *ci = s->private; |
62 | unsigned long flags; | 62 | unsigned long flags; |
63 | unsigned mode; | 63 | unsigned mode; |
64 | 64 | ||
@@ -78,7 +78,7 @@ static ssize_t ci_port_test_write(struct file *file, const char __user *ubuf, | |||
78 | size_t count, loff_t *ppos) | 78 | size_t count, loff_t *ppos) |
79 | { | 79 | { |
80 | struct seq_file *s = file->private_data; | 80 | struct seq_file *s = file->private_data; |
81 | struct ci13xxx *ci = s->private; | 81 | struct ci_hdrc *ci = s->private; |
82 | unsigned long flags; | 82 | unsigned long flags; |
83 | unsigned mode; | 83 | unsigned mode; |
84 | char buf[32]; | 84 | char buf[32]; |
@@ -115,7 +115,7 @@ static const struct file_operations ci_port_test_fops = { | |||
115 | */ | 115 | */ |
116 | static int ci_qheads_show(struct seq_file *s, void *data) | 116 | static int ci_qheads_show(struct seq_file *s, void *data) |
117 | { | 117 | { |
118 | struct ci13xxx *ci = s->private; | 118 | struct ci_hdrc *ci = s->private; |
119 | unsigned long flags; | 119 | unsigned long flags; |
120 | unsigned i, j; | 120 | unsigned i, j; |
121 | 121 | ||
@@ -126,12 +126,12 @@ static int ci_qheads_show(struct seq_file *s, void *data) | |||
126 | 126 | ||
127 | spin_lock_irqsave(&ci->lock, flags); | 127 | spin_lock_irqsave(&ci->lock, flags); |
128 | for (i = 0; i < ci->hw_ep_max/2; i++) { | 128 | for (i = 0; i < ci->hw_ep_max/2; i++) { |
129 | struct ci13xxx_ep *hweprx = &ci->ci13xxx_ep[i]; | 129 | struct ci_hw_ep *hweprx = &ci->ci_hw_ep[i]; |
130 | struct ci13xxx_ep *hweptx = | 130 | struct ci_hw_ep *hweptx = |
131 | &ci->ci13xxx_ep[i + ci->hw_ep_max/2]; | 131 | &ci->ci_hw_ep[i + ci->hw_ep_max/2]; |
132 | seq_printf(s, "EP=%02i: RX=%08X TX=%08X\n", | 132 | seq_printf(s, "EP=%02i: RX=%08X TX=%08X\n", |
133 | i, (u32)hweprx->qh.dma, (u32)hweptx->qh.dma); | 133 | i, (u32)hweprx->qh.dma, (u32)hweptx->qh.dma); |
134 | for (j = 0; j < (sizeof(struct ci13xxx_qh)/sizeof(u32)); j++) | 134 | for (j = 0; j < (sizeof(struct ci_hw_qh)/sizeof(u32)); j++) |
135 | seq_printf(s, " %04X: %08X %08X\n", j, | 135 | seq_printf(s, " %04X: %08X %08X\n", j, |
136 | *((u32 *)hweprx->qh.ptr + j), | 136 | *((u32 *)hweprx->qh.ptr + j), |
137 | *((u32 *)hweptx->qh.ptr + j)); | 137 | *((u32 *)hweptx->qh.ptr + j)); |
@@ -158,12 +158,12 @@ static const struct file_operations ci_qheads_fops = { | |||
158 | */ | 158 | */ |
159 | static int ci_requests_show(struct seq_file *s, void *data) | 159 | static int ci_requests_show(struct seq_file *s, void *data) |
160 | { | 160 | { |
161 | struct ci13xxx *ci = s->private; | 161 | struct ci_hdrc *ci = s->private; |
162 | unsigned long flags; | 162 | unsigned long flags; |
163 | struct list_head *ptr = NULL; | 163 | struct list_head *ptr = NULL; |
164 | struct ci13xxx_req *req = NULL; | 164 | struct ci_hw_req *req = NULL; |
165 | struct td_node *node, *tmpnode; | 165 | struct td_node *node, *tmpnode; |
166 | unsigned i, j, qsize = sizeof(struct ci13xxx_td)/sizeof(u32); | 166 | unsigned i, j, qsize = sizeof(struct ci_hw_td)/sizeof(u32); |
167 | 167 | ||
168 | if (ci->role != CI_ROLE_GADGET) { | 168 | if (ci->role != CI_ROLE_GADGET) { |
169 | seq_printf(s, "not in gadget mode\n"); | 169 | seq_printf(s, "not in gadget mode\n"); |
@@ -172,8 +172,8 @@ static int ci_requests_show(struct seq_file *s, void *data) | |||
172 | 172 | ||
173 | spin_lock_irqsave(&ci->lock, flags); | 173 | spin_lock_irqsave(&ci->lock, flags); |
174 | for (i = 0; i < ci->hw_ep_max; i++) | 174 | for (i = 0; i < ci->hw_ep_max; i++) |
175 | list_for_each(ptr, &ci->ci13xxx_ep[i].qh.queue) { | 175 | list_for_each(ptr, &ci->ci_hw_ep[i].qh.queue) { |
176 | req = list_entry(ptr, struct ci13xxx_req, queue); | 176 | req = list_entry(ptr, struct ci_hw_req, queue); |
177 | 177 | ||
178 | list_for_each_entry_safe(node, tmpnode, &req->tds, td) { | 178 | list_for_each_entry_safe(node, tmpnode, &req->tds, td) { |
179 | seq_printf(s, "EP=%02i: TD=%08X %s\n", | 179 | seq_printf(s, "EP=%02i: TD=%08X %s\n", |
@@ -206,7 +206,7 @@ static const struct file_operations ci_requests_fops = { | |||
206 | 206 | ||
207 | static int ci_role_show(struct seq_file *s, void *data) | 207 | static int ci_role_show(struct seq_file *s, void *data) |
208 | { | 208 | { |
209 | struct ci13xxx *ci = s->private; | 209 | struct ci_hdrc *ci = s->private; |
210 | 210 | ||
211 | seq_printf(s, "%s\n", ci_role(ci)->name); | 211 | seq_printf(s, "%s\n", ci_role(ci)->name); |
212 | 212 | ||
@@ -217,7 +217,7 @@ static ssize_t ci_role_write(struct file *file, const char __user *ubuf, | |||
217 | size_t count, loff_t *ppos) | 217 | size_t count, loff_t *ppos) |
218 | { | 218 | { |
219 | struct seq_file *s = file->private_data; | 219 | struct seq_file *s = file->private_data; |
220 | struct ci13xxx *ci = s->private; | 220 | struct ci_hdrc *ci = s->private; |
221 | enum ci_role role; | 221 | enum ci_role role; |
222 | char buf[8]; | 222 | char buf[8]; |
223 | int ret; | 223 | int ret; |
@@ -259,7 +259,7 @@ static const struct file_operations ci_role_fops = { | |||
259 | * | 259 | * |
260 | * This function returns an error code | 260 | * This function returns an error code |
261 | */ | 261 | */ |
262 | int dbg_create_files(struct ci13xxx *ci) | 262 | int dbg_create_files(struct ci_hdrc *ci) |
263 | { | 263 | { |
264 | struct dentry *dent; | 264 | struct dentry *dent; |
265 | 265 | ||
@@ -300,7 +300,7 @@ err: | |||
300 | * dbg_remove_files: destroys the attribute interface | 300 | * dbg_remove_files: destroys the attribute interface |
301 | * @ci: device | 301 | * @ci: device |
302 | */ | 302 | */ |
303 | void dbg_remove_files(struct ci13xxx *ci) | 303 | void dbg_remove_files(struct ci_hdrc *ci) |
304 | { | 304 | { |
305 | debugfs_remove_recursive(ci->debugfs); | 305 | debugfs_remove_recursive(ci->debugfs); |
306 | } | 306 | } |