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/ipw.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/ipw.c')
-rw-r--r-- | drivers/usb/serial/ipw.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index ec0ccd14e18e..bc85ca5c1c37 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -169,15 +169,15 @@ static void ipw_read_bulk_callback(struct urb *urb) | |||
169 | int result; | 169 | int result; |
170 | int status = urb->status; | 170 | int status = urb->status; |
171 | 171 | ||
172 | dbg("%s - port %d", __FUNCTION__, port->number); | 172 | dbg("%s - port %d", __func__, port->number); |
173 | 173 | ||
174 | if (status) { | 174 | if (status) { |
175 | dbg("%s - nonzero read bulk status received: %d", | 175 | dbg("%s - nonzero read bulk status received: %d", |
176 | __FUNCTION__, status); | 176 | __func__, status); |
177 | return; | 177 | return; |
178 | } | 178 | } |
179 | 179 | ||
180 | usb_serial_debug_data(debug, &port->dev, __FUNCTION__, urb->actual_length, data); | 180 | usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, data); |
181 | 181 | ||
182 | tty = port->tty; | 182 | tty = port->tty; |
183 | if (tty && urb->actual_length) { | 183 | if (tty && urb->actual_length) { |
@@ -195,7 +195,7 @@ static void ipw_read_bulk_callback(struct urb *urb) | |||
195 | ipw_read_bulk_callback, port); | 195 | ipw_read_bulk_callback, port); |
196 | result = usb_submit_urb(port->read_urb, GFP_ATOMIC); | 196 | result = usb_submit_urb(port->read_urb, GFP_ATOMIC); |
197 | if (result) | 197 | if (result) |
198 | dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", __FUNCTION__, result); | 198 | dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n", __func__, result); |
199 | return; | 199 | return; |
200 | } | 200 | } |
201 | 201 | ||
@@ -206,7 +206,7 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
206 | u8 *buf_flow_init; | 206 | u8 *buf_flow_init; |
207 | int result; | 207 | int result; |
208 | 208 | ||
209 | dbg("%s", __FUNCTION__); | 209 | dbg("%s", __func__); |
210 | 210 | ||
211 | buf_flow_init = kmemdup(buf_flow_static, 16, GFP_KERNEL); | 211 | buf_flow_init = kmemdup(buf_flow_static, 16, GFP_KERNEL); |
212 | if (!buf_flow_init) | 212 | if (!buf_flow_init) |
@@ -217,7 +217,7 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
217 | 217 | ||
218 | /* --1: Tell the modem to initialize (we think) From sniffs this is always the | 218 | /* --1: Tell the modem to initialize (we think) From sniffs this is always the |
219 | * first thing that gets sent to the modem during opening of the device */ | 219 | * first thing that gets sent to the modem during opening of the device */ |
220 | dbg("%s: Sending SIO_INIT (we guess)",__FUNCTION__); | 220 | dbg("%s: Sending SIO_INIT (we guess)",__func__); |
221 | result = usb_control_msg(dev, usb_sndctrlpipe(dev,0), | 221 | result = usb_control_msg(dev, usb_sndctrlpipe(dev,0), |
222 | IPW_SIO_INIT, | 222 | IPW_SIO_INIT, |
223 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 223 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
@@ -234,7 +234,7 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
234 | usb_clear_halt(dev, usb_sndbulkpipe(dev, port->bulk_out_endpointAddress)); | 234 | usb_clear_halt(dev, usb_sndbulkpipe(dev, port->bulk_out_endpointAddress)); |
235 | 235 | ||
236 | /*--2: Start reading from the device */ | 236 | /*--2: Start reading from the device */ |
237 | dbg("%s: setting up bulk read callback",__FUNCTION__); | 237 | dbg("%s: setting up bulk read callback",__func__); |
238 | usb_fill_bulk_urb(port->read_urb, dev, | 238 | usb_fill_bulk_urb(port->read_urb, dev, |
239 | usb_rcvbulkpipe(dev, port->bulk_in_endpointAddress), | 239 | usb_rcvbulkpipe(dev, port->bulk_in_endpointAddress), |
240 | port->bulk_in_buffer, | 240 | port->bulk_in_buffer, |
@@ -242,10 +242,10 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
242 | ipw_read_bulk_callback, port); | 242 | ipw_read_bulk_callback, port); |
243 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); | 243 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); |
244 | if (result < 0) | 244 | if (result < 0) |
245 | dbg("%s - usb_submit_urb(read bulk) failed with status %d", __FUNCTION__, result); | 245 | dbg("%s - usb_submit_urb(read bulk) failed with status %d", __func__, result); |
246 | 246 | ||
247 | /*--3: Tell the modem to open the floodgates on the rx bulk channel */ | 247 | /*--3: Tell the modem to open the floodgates on the rx bulk channel */ |
248 | dbg("%s:asking modem for RxRead (RXBULK_ON)",__FUNCTION__); | 248 | dbg("%s:asking modem for RxRead (RXBULK_ON)",__func__); |
249 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 249 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
250 | IPW_SIO_RXCTL, | 250 | IPW_SIO_RXCTL, |
251 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 251 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
@@ -258,7 +258,7 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
258 | dev_err(&port->dev, "Enabling bulk RxRead failed (error = %d)\n", result); | 258 | dev_err(&port->dev, "Enabling bulk RxRead failed (error = %d)\n", result); |
259 | 259 | ||
260 | /*--4: setup the initial flowcontrol */ | 260 | /*--4: setup the initial flowcontrol */ |
261 | dbg("%s:setting init flowcontrol (%s)",__FUNCTION__,buf_flow_init); | 261 | dbg("%s:setting init flowcontrol (%s)",__func__,buf_flow_init); |
262 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 262 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
263 | IPW_SIO_HANDFLOW, | 263 | IPW_SIO_HANDFLOW, |
264 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 264 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
@@ -272,7 +272,7 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
272 | 272 | ||
273 | 273 | ||
274 | /*--5: raise the dtr */ | 274 | /*--5: raise the dtr */ |
275 | dbg("%s:raising dtr",__FUNCTION__); | 275 | dbg("%s:raising dtr",__func__); |
276 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 276 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
277 | IPW_SIO_SET_PIN, | 277 | IPW_SIO_SET_PIN, |
278 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 278 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
@@ -285,7 +285,7 @@ static int ipw_open(struct usb_serial_port *port, struct file *filp) | |||
285 | dev_err(&port->dev, "setting dtr failed (error = %d)\n", result); | 285 | dev_err(&port->dev, "setting dtr failed (error = %d)\n", result); |
286 | 286 | ||
287 | /*--6: raise the rts */ | 287 | /*--6: raise the rts */ |
288 | dbg("%s:raising rts",__FUNCTION__); | 288 | dbg("%s:raising rts",__func__); |
289 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 289 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
290 | IPW_SIO_SET_PIN, | 290 | IPW_SIO_SET_PIN, |
291 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 291 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
@@ -307,12 +307,12 @@ static void ipw_close(struct usb_serial_port *port, struct file * filp) | |||
307 | int result; | 307 | int result; |
308 | 308 | ||
309 | if (tty_hung_up_p(filp)) { | 309 | if (tty_hung_up_p(filp)) { |
310 | dbg("%s: tty_hung_up_p ...", __FUNCTION__); | 310 | dbg("%s: tty_hung_up_p ...", __func__); |
311 | return; | 311 | return; |
312 | } | 312 | } |
313 | 313 | ||
314 | /*--1: drop the dtr */ | 314 | /*--1: drop the dtr */ |
315 | dbg("%s:dropping dtr",__FUNCTION__); | 315 | dbg("%s:dropping dtr",__func__); |
316 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 316 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
317 | IPW_SIO_SET_PIN, | 317 | IPW_SIO_SET_PIN, |
318 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 318 | USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
@@ -325,7 +325,7 @@ static void ipw_close(struct usb_serial_port *port, struct file * filp) | |||
325 | dev_err(&port->dev, "dropping dtr failed (error = %d)\n", result); | 325 | dev_err(&port->dev, "dropping dtr failed (error = %d)\n", result); |
326 | 326 | ||
327 | /*--2: drop the rts */ | 327 | /*--2: drop the rts */ |
328 | dbg("%s:dropping rts",__FUNCTION__); | 328 | dbg("%s:dropping rts",__func__); |
329 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 329 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
330 | IPW_SIO_SET_PIN, USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 330 | IPW_SIO_SET_PIN, USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
331 | IPW_PIN_CLRRTS, | 331 | IPW_PIN_CLRRTS, |
@@ -338,7 +338,7 @@ static void ipw_close(struct usb_serial_port *port, struct file * filp) | |||
338 | 338 | ||
339 | 339 | ||
340 | /*--3: purge */ | 340 | /*--3: purge */ |
341 | dbg("%s:sending purge",__FUNCTION__); | 341 | dbg("%s:sending purge",__func__); |
342 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), | 342 | result = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), |
343 | IPW_SIO_PURGE, USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, | 343 | IPW_SIO_PURGE, USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT, |
344 | 0x03, | 344 | 0x03, |
@@ -373,13 +373,13 @@ static void ipw_write_bulk_callback(struct urb *urb) | |||
373 | struct usb_serial_port *port = urb->context; | 373 | struct usb_serial_port *port = urb->context; |
374 | int status = urb->status; | 374 | int status = urb->status; |
375 | 375 | ||
376 | dbg("%s", __FUNCTION__); | 376 | dbg("%s", __func__); |
377 | 377 | ||
378 | port->write_urb_busy = 0; | 378 | port->write_urb_busy = 0; |
379 | 379 | ||
380 | if (status) | 380 | if (status) |
381 | dbg("%s - nonzero write bulk status received: %d", | 381 | dbg("%s - nonzero write bulk status received: %d", |
382 | __FUNCTION__, status); | 382 | __func__, status); |
383 | 383 | ||
384 | usb_serial_port_softint(port); | 384 | usb_serial_port_softint(port); |
385 | } | 385 | } |
@@ -389,18 +389,18 @@ static int ipw_write(struct usb_serial_port *port, const unsigned char *buf, int | |||
389 | struct usb_device *dev = port->serial->dev; | 389 | struct usb_device *dev = port->serial->dev; |
390 | int ret; | 390 | int ret; |
391 | 391 | ||
392 | dbg("%s: TOP: count=%d, in_interrupt=%ld", __FUNCTION__, | 392 | dbg("%s: TOP: count=%d, in_interrupt=%ld", __func__, |
393 | count, in_interrupt() ); | 393 | count, in_interrupt() ); |
394 | 394 | ||
395 | if (count == 0) { | 395 | if (count == 0) { |
396 | dbg("%s - write request of 0 bytes", __FUNCTION__); | 396 | dbg("%s - write request of 0 bytes", __func__); |
397 | return 0; | 397 | return 0; |
398 | } | 398 | } |
399 | 399 | ||
400 | spin_lock_bh(&port->lock); | 400 | spin_lock_bh(&port->lock); |
401 | if (port->write_urb_busy) { | 401 | if (port->write_urb_busy) { |
402 | spin_unlock_bh(&port->lock); | 402 | spin_unlock_bh(&port->lock); |
403 | dbg("%s - already writing", __FUNCTION__); | 403 | dbg("%s - already writing", __func__); |
404 | return 0; | 404 | return 0; |
405 | } | 405 | } |
406 | port->write_urb_busy = 1; | 406 | port->write_urb_busy = 1; |
@@ -409,7 +409,7 @@ static int ipw_write(struct usb_serial_port *port, const unsigned char *buf, int | |||
409 | count = min(count, port->bulk_out_size); | 409 | count = min(count, port->bulk_out_size); |
410 | memcpy(port->bulk_out_buffer, buf, count); | 410 | memcpy(port->bulk_out_buffer, buf, count); |
411 | 411 | ||
412 | dbg("%s count now:%d", __FUNCTION__, count); | 412 | dbg("%s count now:%d", __func__, count); |
413 | 413 | ||
414 | usb_fill_bulk_urb(port->write_urb, dev, | 414 | usb_fill_bulk_urb(port->write_urb, dev, |
415 | usb_sndbulkpipe(dev, port->bulk_out_endpointAddress), | 415 | usb_sndbulkpipe(dev, port->bulk_out_endpointAddress), |
@@ -421,11 +421,11 @@ static int ipw_write(struct usb_serial_port *port, const unsigned char *buf, int | |||
421 | ret = usb_submit_urb(port->write_urb, GFP_ATOMIC); | 421 | ret = usb_submit_urb(port->write_urb, GFP_ATOMIC); |
422 | if (ret != 0) { | 422 | if (ret != 0) { |
423 | port->write_urb_busy = 0; | 423 | port->write_urb_busy = 0; |
424 | dbg("%s - usb_submit_urb(write bulk) failed with error = %d", __FUNCTION__, ret); | 424 | dbg("%s - usb_submit_urb(write bulk) failed with error = %d", __func__, ret); |
425 | return ret; | 425 | return ret; |
426 | } | 426 | } |
427 | 427 | ||
428 | dbg("%s returning %d", __FUNCTION__, count); | 428 | dbg("%s returning %d", __func__, count); |
429 | return count; | 429 | return count; |
430 | } | 430 | } |
431 | 431 | ||