diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-03-03 19:08:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:55 -0400 |
commit | 441b62c1edb986827154768d89bbac0ba779984f (patch) | |
tree | 13724c22d1b190a36f0ddbba38554e6c66bea6af /drivers/usb/serial/airprime.c | |
parent | 14722ef4acedc643f0b78b7165ceff2d300dae4d (diff) |
USB: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/airprime.c')
-rw-r--r-- | drivers/usb/serial/airprime.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/usb/serial/airprime.c b/drivers/usb/serial/airprime.c index d5bcb3774034..725b6b94c274 100644 --- a/drivers/usb/serial/airprime.c +++ b/drivers/usb/serial/airprime.c | |||
@@ -53,7 +53,7 @@ static int airprime_send_setup(struct usb_serial_port *port) | |||
53 | struct usb_serial *serial = port->serial; | 53 | struct usb_serial *serial = port->serial; |
54 | struct airprime_private *priv; | 54 | struct airprime_private *priv; |
55 | 55 | ||
56 | dbg("%s", __FUNCTION__); | 56 | dbg("%s", __func__); |
57 | 57 | ||
58 | if (port->number != 0) | 58 | if (port->number != 0) |
59 | return 0; | 59 | return 0; |
@@ -83,14 +83,14 @@ static void airprime_read_bulk_callback(struct urb *urb) | |||
83 | int result; | 83 | int result; |
84 | int status = urb->status; | 84 | int status = urb->status; |
85 | 85 | ||
86 | dbg("%s - port %d", __FUNCTION__, port->number); | 86 | dbg("%s - port %d", __func__, port->number); |
87 | 87 | ||
88 | if (status) { | 88 | if (status) { |
89 | dbg("%s - nonzero read bulk status received: %d", | 89 | dbg("%s - nonzero read bulk status received: %d", |
90 | __FUNCTION__, status); | 90 | __func__, status); |
91 | return; | 91 | return; |
92 | } | 92 | } |
93 | usb_serial_debug_data(debug, &port->dev, __FUNCTION__, urb->actual_length, data); | 93 | usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, data); |
94 | 94 | ||
95 | tty = port->tty; | 95 | tty = port->tty; |
96 | if (tty && urb->actual_length) { | 96 | if (tty && urb->actual_length) { |
@@ -101,7 +101,7 @@ static void airprime_read_bulk_callback(struct urb *urb) | |||
101 | result = usb_submit_urb (urb, GFP_ATOMIC); | 101 | result = usb_submit_urb (urb, GFP_ATOMIC); |
102 | if (result) | 102 | if (result) |
103 | dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", | 103 | dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", |
104 | __FUNCTION__, result); | 104 | __func__, result); |
105 | return; | 105 | return; |
106 | } | 106 | } |
107 | 107 | ||
@@ -112,14 +112,14 @@ static void airprime_write_bulk_callback(struct urb *urb) | |||
112 | int status = urb->status; | 112 | int status = urb->status; |
113 | unsigned long flags; | 113 | unsigned long flags; |
114 | 114 | ||
115 | dbg("%s - port %d", __FUNCTION__, port->number); | 115 | dbg("%s - port %d", __func__, port->number); |
116 | 116 | ||
117 | /* free up the transfer buffer, as usb_free_urb() does not do this */ | 117 | /* free up the transfer buffer, as usb_free_urb() does not do this */ |
118 | kfree (urb->transfer_buffer); | 118 | kfree (urb->transfer_buffer); |
119 | 119 | ||
120 | if (status) | 120 | if (status) |
121 | dbg("%s - nonzero write bulk status received: %d", | 121 | dbg("%s - nonzero write bulk status received: %d", |
122 | __FUNCTION__, status); | 122 | __func__, status); |
123 | spin_lock_irqsave(&priv->lock, flags); | 123 | spin_lock_irqsave(&priv->lock, flags); |
124 | --priv->outstanding_urbs; | 124 | --priv->outstanding_urbs; |
125 | spin_unlock_irqrestore(&priv->lock, flags); | 125 | spin_unlock_irqrestore(&priv->lock, flags); |
@@ -136,7 +136,7 @@ static int airprime_open(struct usb_serial_port *port, struct file *filp) | |||
136 | int i; | 136 | int i; |
137 | int result = 0; | 137 | int result = 0; |
138 | 138 | ||
139 | dbg("%s - port %d", __FUNCTION__, port->number); | 139 | dbg("%s - port %d", __func__, port->number); |
140 | 140 | ||
141 | /* initialize our private data structure if it isn't already created */ | 141 | /* initialize our private data structure if it isn't already created */ |
142 | if (!priv) { | 142 | if (!priv) { |
@@ -157,7 +157,7 @@ static int airprime_open(struct usb_serial_port *port, struct file *filp) | |||
157 | buffer = kmalloc(buffer_size, GFP_KERNEL); | 157 | buffer = kmalloc(buffer_size, GFP_KERNEL); |
158 | if (!buffer) { | 158 | if (!buffer) { |
159 | dev_err(&port->dev, "%s - out of memory.\n", | 159 | dev_err(&port->dev, "%s - out of memory.\n", |
160 | __FUNCTION__); | 160 | __func__); |
161 | result = -ENOMEM; | 161 | result = -ENOMEM; |
162 | goto errout; | 162 | goto errout; |
163 | } | 163 | } |
@@ -165,7 +165,7 @@ static int airprime_open(struct usb_serial_port *port, struct file *filp) | |||
165 | if (!urb) { | 165 | if (!urb) { |
166 | kfree(buffer); | 166 | kfree(buffer); |
167 | dev_err(&port->dev, "%s - no more urbs?\n", | 167 | dev_err(&port->dev, "%s - no more urbs?\n", |
168 | __FUNCTION__); | 168 | __func__); |
169 | result = -ENOMEM; | 169 | result = -ENOMEM; |
170 | goto errout; | 170 | goto errout; |
171 | } | 171 | } |
@@ -180,7 +180,7 @@ static int airprime_open(struct usb_serial_port *port, struct file *filp) | |||
180 | kfree(buffer); | 180 | kfree(buffer); |
181 | dev_err(&port->dev, | 181 | dev_err(&port->dev, |
182 | "%s - failed submitting read urb %d for port %d, error %d\n", | 182 | "%s - failed submitting read urb %d for port %d, error %d\n", |
183 | __FUNCTION__, i, port->number, result); | 183 | __func__, i, port->number, result); |
184 | goto errout; | 184 | goto errout; |
185 | } | 185 | } |
186 | /* remember this urb so we can kill it when the port is closed */ | 186 | /* remember this urb so we can kill it when the port is closed */ |
@@ -212,7 +212,7 @@ static void airprime_close(struct usb_serial_port *port, struct file * filp) | |||
212 | struct airprime_private *priv = usb_get_serial_port_data(port); | 212 | struct airprime_private *priv = usb_get_serial_port_data(port); |
213 | int i; | 213 | int i; |
214 | 214 | ||
215 | dbg("%s - port %d", __FUNCTION__, port->number); | 215 | dbg("%s - port %d", __func__, port->number); |
216 | 216 | ||
217 | priv->rts_state = 0; | 217 | priv->rts_state = 0; |
218 | priv->dtr_state = 0; | 218 | priv->dtr_state = 0; |
@@ -242,12 +242,12 @@ static int airprime_write(struct usb_serial_port *port, | |||
242 | unsigned char *buffer; | 242 | unsigned char *buffer; |
243 | unsigned long flags; | 243 | unsigned long flags; |
244 | int status; | 244 | int status; |
245 | dbg("%s - port %d", __FUNCTION__, port->number); | 245 | dbg("%s - port %d", __func__, port->number); |
246 | 246 | ||
247 | spin_lock_irqsave(&priv->lock, flags); | 247 | spin_lock_irqsave(&priv->lock, flags); |
248 | if (priv->outstanding_urbs > NUM_WRITE_URBS) { | 248 | if (priv->outstanding_urbs > NUM_WRITE_URBS) { |
249 | spin_unlock_irqrestore(&priv->lock, flags); | 249 | spin_unlock_irqrestore(&priv->lock, flags); |
250 | dbg("%s - write limit hit\n", __FUNCTION__); | 250 | dbg("%s - write limit hit\n", __func__); |
251 | return 0; | 251 | return 0; |
252 | } | 252 | } |
253 | spin_unlock_irqrestore(&priv->lock, flags); | 253 | spin_unlock_irqrestore(&priv->lock, flags); |
@@ -264,7 +264,7 @@ static int airprime_write(struct usb_serial_port *port, | |||
264 | } | 264 | } |
265 | memcpy (buffer, buf, count); | 265 | memcpy (buffer, buf, count); |
266 | 266 | ||
267 | usb_serial_debug_data(debug, &port->dev, __FUNCTION__, count, buffer); | 267 | usb_serial_debug_data(debug, &port->dev, __func__, count, buffer); |
268 | 268 | ||
269 | usb_fill_bulk_urb(urb, serial->dev, | 269 | usb_fill_bulk_urb(urb, serial->dev, |
270 | usb_sndbulkpipe(serial->dev, | 270 | usb_sndbulkpipe(serial->dev, |
@@ -277,7 +277,7 @@ static int airprime_write(struct usb_serial_port *port, | |||
277 | if (status) { | 277 | if (status) { |
278 | dev_err(&port->dev, | 278 | dev_err(&port->dev, |
279 | "%s - usb_submit_urb(write bulk) failed with status = %d\n", | 279 | "%s - usb_submit_urb(write bulk) failed with status = %d\n", |
280 | __FUNCTION__, status); | 280 | __func__, status); |
281 | count = status; | 281 | count = status; |
282 | kfree (buffer); | 282 | kfree (buffer); |
283 | } else { | 283 | } else { |
@@ -328,7 +328,7 @@ static int __init airprime_init(void) | |||
328 | 328 | ||
329 | static void __exit airprime_exit(void) | 329 | static void __exit airprime_exit(void) |
330 | { | 330 | { |
331 | dbg("%s", __FUNCTION__); | 331 | dbg("%s", __func__); |
332 | 332 | ||
333 | usb_deregister(&airprime_driver); | 333 | usb_deregister(&airprime_driver); |
334 | usb_serial_deregister(&airprime_device); | 334 | usb_serial_deregister(&airprime_device); |