diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-05-05 11:36:18 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-05-16 14:45:58 -0400 |
commit | ea3e6c59266b783b103c0f42a8de5dbe565a43d4 (patch) | |
tree | b9dce06a3180e4a64eaa1dd3b45e8e070e39c315 /drivers/input/misc | |
parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) |
Input: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/ati_remote.c | 18 | ||||
-rw-r--r-- | drivers/input/misc/ati_remote2.c | 18 | ||||
-rw-r--r-- | drivers/input/misc/keyspan_remote.c | 20 | ||||
-rw-r--r-- | drivers/input/misc/powermate.c | 6 | ||||
-rw-r--r-- | drivers/input/misc/yealink.c | 12 |
5 files changed, 37 insertions, 37 deletions
diff --git a/drivers/input/misc/ati_remote.c b/drivers/input/misc/ati_remote.c index f3b86c2b0797..debfc1af9d95 100644 --- a/drivers/input/misc/ati_remote.c +++ b/drivers/input/misc/ati_remote.c | |||
@@ -330,7 +330,7 @@ static int ati_remote_open(struct input_dev *inputdev) | |||
330 | ati_remote->irq_urb->dev = ati_remote->udev; | 330 | ati_remote->irq_urb->dev = ati_remote->udev; |
331 | if (usb_submit_urb(ati_remote->irq_urb, GFP_KERNEL)) { | 331 | if (usb_submit_urb(ati_remote->irq_urb, GFP_KERNEL)) { |
332 | dev_err(&ati_remote->interface->dev, | 332 | dev_err(&ati_remote->interface->dev, |
333 | "%s: usb_submit_urb failed!\n", __FUNCTION__); | 333 | "%s: usb_submit_urb failed!\n", __func__); |
334 | return -EIO; | 334 | return -EIO; |
335 | } | 335 | } |
336 | 336 | ||
@@ -356,7 +356,7 @@ static void ati_remote_irq_out(struct urb *urb) | |||
356 | 356 | ||
357 | if (urb->status) { | 357 | if (urb->status) { |
358 | dev_dbg(&ati_remote->interface->dev, "%s: status %d\n", | 358 | dev_dbg(&ati_remote->interface->dev, "%s: status %d\n", |
359 | __FUNCTION__, urb->status); | 359 | __func__, urb->status); |
360 | return; | 360 | return; |
361 | } | 361 | } |
362 | 362 | ||
@@ -601,17 +601,17 @@ static void ati_remote_irq_in(struct urb *urb) | |||
601 | case -ENOENT: | 601 | case -ENOENT: |
602 | case -ESHUTDOWN: | 602 | case -ESHUTDOWN: |
603 | dev_dbg(&ati_remote->interface->dev, "%s: urb error status, unlink? \n", | 603 | dev_dbg(&ati_remote->interface->dev, "%s: urb error status, unlink? \n", |
604 | __FUNCTION__); | 604 | __func__); |
605 | return; | 605 | return; |
606 | default: /* error */ | 606 | default: /* error */ |
607 | dev_dbg(&ati_remote->interface->dev, "%s: Nonzero urb status %d\n", | 607 | dev_dbg(&ati_remote->interface->dev, "%s: Nonzero urb status %d\n", |
608 | __FUNCTION__, urb->status); | 608 | __func__, urb->status); |
609 | } | 609 | } |
610 | 610 | ||
611 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 611 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
612 | if (retval) | 612 | if (retval) |
613 | dev_err(&ati_remote->interface->dev, "%s: usb_submit_urb()=%d\n", | 613 | dev_err(&ati_remote->interface->dev, "%s: usb_submit_urb()=%d\n", |
614 | __FUNCTION__, retval); | 614 | __func__, retval); |
615 | } | 615 | } |
616 | 616 | ||
617 | /* | 617 | /* |
@@ -734,7 +734,7 @@ static int ati_remote_probe(struct usb_interface *interface, const struct usb_de | |||
734 | int err = -ENOMEM; | 734 | int err = -ENOMEM; |
735 | 735 | ||
736 | if (iface_host->desc.bNumEndpoints != 2) { | 736 | if (iface_host->desc.bNumEndpoints != 2) { |
737 | err("%s: Unexpected desc.bNumEndpoints\n", __FUNCTION__); | 737 | err("%s: Unexpected desc.bNumEndpoints\n", __func__); |
738 | return -ENODEV; | 738 | return -ENODEV; |
739 | } | 739 | } |
740 | 740 | ||
@@ -742,11 +742,11 @@ static int ati_remote_probe(struct usb_interface *interface, const struct usb_de | |||
742 | endpoint_out = &iface_host->endpoint[1].desc; | 742 | endpoint_out = &iface_host->endpoint[1].desc; |
743 | 743 | ||
744 | if (!usb_endpoint_is_int_in(endpoint_in)) { | 744 | if (!usb_endpoint_is_int_in(endpoint_in)) { |
745 | err("%s: Unexpected endpoint_in\n", __FUNCTION__); | 745 | err("%s: Unexpected endpoint_in\n", __func__); |
746 | return -ENODEV; | 746 | return -ENODEV; |
747 | } | 747 | } |
748 | if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) { | 748 | if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) { |
749 | err("%s: endpoint_in message size==0? \n", __FUNCTION__); | 749 | err("%s: endpoint_in message size==0? \n", __func__); |
750 | return -ENODEV; | 750 | return -ENODEV; |
751 | } | 751 | } |
752 | 752 | ||
@@ -814,7 +814,7 @@ static void ati_remote_disconnect(struct usb_interface *interface) | |||
814 | ati_remote = usb_get_intfdata(interface); | 814 | ati_remote = usb_get_intfdata(interface); |
815 | usb_set_intfdata(interface, NULL); | 815 | usb_set_intfdata(interface, NULL); |
816 | if (!ati_remote) { | 816 | if (!ati_remote) { |
817 | warn("%s - null device?\n", __FUNCTION__); | 817 | warn("%s - null device?\n", __func__); |
818 | return; | 818 | return; |
819 | } | 819 | } |
820 | 820 | ||
diff --git a/drivers/input/misc/ati_remote2.c b/drivers/input/misc/ati_remote2.c index f2709b82485c..a7fabafbd94c 100644 --- a/drivers/input/misc/ati_remote2.c +++ b/drivers/input/misc/ati_remote2.c | |||
@@ -137,14 +137,14 @@ static int ati_remote2_open(struct input_dev *idev) | |||
137 | r = usb_submit_urb(ar2->urb[0], GFP_KERNEL); | 137 | r = usb_submit_urb(ar2->urb[0], GFP_KERNEL); |
138 | if (r) { | 138 | if (r) { |
139 | dev_err(&ar2->intf[0]->dev, | 139 | dev_err(&ar2->intf[0]->dev, |
140 | "%s: usb_submit_urb() = %d\n", __FUNCTION__, r); | 140 | "%s: usb_submit_urb() = %d\n", __func__, r); |
141 | return r; | 141 | return r; |
142 | } | 142 | } |
143 | r = usb_submit_urb(ar2->urb[1], GFP_KERNEL); | 143 | r = usb_submit_urb(ar2->urb[1], GFP_KERNEL); |
144 | if (r) { | 144 | if (r) { |
145 | usb_kill_urb(ar2->urb[0]); | 145 | usb_kill_urb(ar2->urb[0]); |
146 | dev_err(&ar2->intf[1]->dev, | 146 | dev_err(&ar2->intf[1]->dev, |
147 | "%s: usb_submit_urb() = %d\n", __FUNCTION__, r); | 147 | "%s: usb_submit_urb() = %d\n", __func__, r); |
148 | return r; | 148 | return r; |
149 | } | 149 | } |
150 | 150 | ||
@@ -294,17 +294,17 @@ static void ati_remote2_complete_mouse(struct urb *urb) | |||
294 | case -ECONNRESET: | 294 | case -ECONNRESET: |
295 | case -ESHUTDOWN: | 295 | case -ESHUTDOWN: |
296 | dev_dbg(&ar2->intf[0]->dev, | 296 | dev_dbg(&ar2->intf[0]->dev, |
297 | "%s(): urb status = %d\n", __FUNCTION__, urb->status); | 297 | "%s(): urb status = %d\n", __func__, urb->status); |
298 | return; | 298 | return; |
299 | default: | 299 | default: |
300 | dev_err(&ar2->intf[0]->dev, | 300 | dev_err(&ar2->intf[0]->dev, |
301 | "%s(): urb status = %d\n", __FUNCTION__, urb->status); | 301 | "%s(): urb status = %d\n", __func__, urb->status); |
302 | } | 302 | } |
303 | 303 | ||
304 | r = usb_submit_urb(urb, GFP_ATOMIC); | 304 | r = usb_submit_urb(urb, GFP_ATOMIC); |
305 | if (r) | 305 | if (r) |
306 | dev_err(&ar2->intf[0]->dev, | 306 | dev_err(&ar2->intf[0]->dev, |
307 | "%s(): usb_submit_urb() = %d\n", __FUNCTION__, r); | 307 | "%s(): usb_submit_urb() = %d\n", __func__, r); |
308 | } | 308 | } |
309 | 309 | ||
310 | static void ati_remote2_complete_key(struct urb *urb) | 310 | static void ati_remote2_complete_key(struct urb *urb) |
@@ -321,17 +321,17 @@ static void ati_remote2_complete_key(struct urb *urb) | |||
321 | case -ECONNRESET: | 321 | case -ECONNRESET: |
322 | case -ESHUTDOWN: | 322 | case -ESHUTDOWN: |
323 | dev_dbg(&ar2->intf[1]->dev, | 323 | dev_dbg(&ar2->intf[1]->dev, |
324 | "%s(): urb status = %d\n", __FUNCTION__, urb->status); | 324 | "%s(): urb status = %d\n", __func__, urb->status); |
325 | return; | 325 | return; |
326 | default: | 326 | default: |
327 | dev_err(&ar2->intf[1]->dev, | 327 | dev_err(&ar2->intf[1]->dev, |
328 | "%s(): urb status = %d\n", __FUNCTION__, urb->status); | 328 | "%s(): urb status = %d\n", __func__, urb->status); |
329 | } | 329 | } |
330 | 330 | ||
331 | r = usb_submit_urb(urb, GFP_ATOMIC); | 331 | r = usb_submit_urb(urb, GFP_ATOMIC); |
332 | if (r) | 332 | if (r) |
333 | dev_err(&ar2->intf[1]->dev, | 333 | dev_err(&ar2->intf[1]->dev, |
334 | "%s(): usb_submit_urb() = %d\n", __FUNCTION__, r); | 334 | "%s(): usb_submit_urb() = %d\n", __func__, r); |
335 | } | 335 | } |
336 | 336 | ||
337 | static int ati_remote2_input_init(struct ati_remote2 *ar2) | 337 | static int ati_remote2_input_init(struct ati_remote2 *ar2) |
@@ -438,7 +438,7 @@ static int ati_remote2_setup(struct ati_remote2 *ar2) | |||
438 | channel, 0x0, NULL, 0, USB_CTRL_SET_TIMEOUT); | 438 | channel, 0x0, NULL, 0, USB_CTRL_SET_TIMEOUT); |
439 | if (r) { | 439 | if (r) { |
440 | dev_err(&ar2->udev->dev, "%s - failed to set channel due to error: %d\n", | 440 | dev_err(&ar2->udev->dev, "%s - failed to set channel due to error: %d\n", |
441 | __FUNCTION__, r); | 441 | __func__, r); |
442 | return r; | 442 | return r; |
443 | } | 443 | } |
444 | 444 | ||
diff --git a/drivers/input/misc/keyspan_remote.c b/drivers/input/misc/keyspan_remote.c index 952938a8e991..86afdd1fdf9d 100644 --- a/drivers/input/misc/keyspan_remote.c +++ b/drivers/input/misc/keyspan_remote.c | |||
@@ -159,7 +159,7 @@ static int keyspan_load_tester(struct usb_keyspan* dev, int bits_needed) | |||
159 | if (dev->data.pos >= dev->data.len) { | 159 | if (dev->data.pos >= dev->data.len) { |
160 | dev_dbg(&dev->udev->dev, | 160 | dev_dbg(&dev->udev->dev, |
161 | "%s - Error ran out of data. pos: %d, len: %d\n", | 161 | "%s - Error ran out of data. pos: %d, len: %d\n", |
162 | __FUNCTION__, dev->data.pos, dev->data.len); | 162 | __func__, dev->data.pos, dev->data.len); |
163 | return -1; | 163 | return -1; |
164 | } | 164 | } |
165 | 165 | ||
@@ -267,7 +267,7 @@ static void keyspan_check_data(struct usb_keyspan *remote) | |||
267 | remote->data.tester = remote->data.tester >> 6; | 267 | remote->data.tester = remote->data.tester >> 6; |
268 | remote->data.bits_left -= 6; | 268 | remote->data.bits_left -= 6; |
269 | } else { | 269 | } else { |
270 | err("%s - Unknown sequence found in system data.\n", __FUNCTION__); | 270 | err("%s - Unknown sequence found in system data.\n", __func__); |
271 | remote->stage = 0; | 271 | remote->stage = 0; |
272 | return; | 272 | return; |
273 | } | 273 | } |
@@ -286,7 +286,7 @@ static void keyspan_check_data(struct usb_keyspan *remote) | |||
286 | remote->data.tester = remote->data.tester >> 6; | 286 | remote->data.tester = remote->data.tester >> 6; |
287 | remote->data.bits_left -= 6; | 287 | remote->data.bits_left -= 6; |
288 | } else { | 288 | } else { |
289 | err("%s - Unknown sequence found in button data.\n", __FUNCTION__); | 289 | err("%s - Unknown sequence found in button data.\n", __func__); |
290 | remote->stage = 0; | 290 | remote->stage = 0; |
291 | return; | 291 | return; |
292 | } | 292 | } |
@@ -302,7 +302,7 @@ static void keyspan_check_data(struct usb_keyspan *remote) | |||
302 | remote->data.tester = remote->data.tester >> 6; | 302 | remote->data.tester = remote->data.tester >> 6; |
303 | remote->data.bits_left -= 6; | 303 | remote->data.bits_left -= 6; |
304 | } else { | 304 | } else { |
305 | err("%s - Error in message, invalid toggle.\n", __FUNCTION__); | 305 | err("%s - Error in message, invalid toggle.\n", __func__); |
306 | remote->stage = 0; | 306 | remote->stage = 0; |
307 | return; | 307 | return; |
308 | } | 308 | } |
@@ -317,7 +317,7 @@ static void keyspan_check_data(struct usb_keyspan *remote) | |||
317 | 317 | ||
318 | dev_dbg(&remote->udev->dev, | 318 | dev_dbg(&remote->udev->dev, |
319 | "%s found valid message: system: %d, button: %d, toggle: %d\n", | 319 | "%s found valid message: system: %d, button: %d, toggle: %d\n", |
320 | __FUNCTION__, message.system, message.button, message.toggle); | 320 | __func__, message.system, message.button, message.toggle); |
321 | 321 | ||
322 | if (message.toggle != remote->toggle) { | 322 | if (message.toggle != remote->toggle) { |
323 | keyspan_report_button(remote, message.button, 1); | 323 | keyspan_report_button(remote, message.button, 1); |
@@ -341,7 +341,7 @@ static int keyspan_setup(struct usb_device* dev) | |||
341 | 0x11, 0x40, 0x5601, 0x0, NULL, 0, 0); | 341 | 0x11, 0x40, 0x5601, 0x0, NULL, 0, 0); |
342 | if (retval) { | 342 | if (retval) { |
343 | dev_dbg(&dev->dev, "%s - failed to set bit rate due to error: %d\n", | 343 | dev_dbg(&dev->dev, "%s - failed to set bit rate due to error: %d\n", |
344 | __FUNCTION__, retval); | 344 | __func__, retval); |
345 | return(retval); | 345 | return(retval); |
346 | } | 346 | } |
347 | 347 | ||
@@ -349,7 +349,7 @@ static int keyspan_setup(struct usb_device* dev) | |||
349 | 0x44, 0x40, 0x0, 0x0, NULL, 0, 0); | 349 | 0x44, 0x40, 0x0, 0x0, NULL, 0, 0); |
350 | if (retval) { | 350 | if (retval) { |
351 | dev_dbg(&dev->dev, "%s - failed to set resume sensitivity due to error: %d\n", | 351 | dev_dbg(&dev->dev, "%s - failed to set resume sensitivity due to error: %d\n", |
352 | __FUNCTION__, retval); | 352 | __func__, retval); |
353 | return(retval); | 353 | return(retval); |
354 | } | 354 | } |
355 | 355 | ||
@@ -357,11 +357,11 @@ static int keyspan_setup(struct usb_device* dev) | |||
357 | 0x22, 0x40, 0x0, 0x0, NULL, 0, 0); | 357 | 0x22, 0x40, 0x0, 0x0, NULL, 0, 0); |
358 | if (retval) { | 358 | if (retval) { |
359 | dev_dbg(&dev->dev, "%s - failed to turn receive on due to error: %d\n", | 359 | dev_dbg(&dev->dev, "%s - failed to turn receive on due to error: %d\n", |
360 | __FUNCTION__, retval); | 360 | __func__, retval); |
361 | return(retval); | 361 | return(retval); |
362 | } | 362 | } |
363 | 363 | ||
364 | dev_dbg(&dev->dev, "%s - Setup complete.\n", __FUNCTION__); | 364 | dev_dbg(&dev->dev, "%s - Setup complete.\n", __func__); |
365 | return(retval); | 365 | return(retval); |
366 | } | 366 | } |
367 | 367 | ||
@@ -397,7 +397,7 @@ static void keyspan_irq_recv(struct urb *urb) | |||
397 | resubmit: | 397 | resubmit: |
398 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 398 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
399 | if (retval) | 399 | if (retval) |
400 | err ("%s - usb_submit_urb failed with result: %d", __FUNCTION__, retval); | 400 | err ("%s - usb_submit_urb failed with result: %d", __func__, retval); |
401 | } | 401 | } |
402 | 402 | ||
403 | static int keyspan_open(struct input_dev *dev) | 403 | static int keyspan_open(struct input_dev *dev) |
diff --git a/drivers/input/misc/powermate.c b/drivers/input/misc/powermate.c index 7a7b8c7b9633..a53c4885fbad 100644 --- a/drivers/input/misc/powermate.c +++ b/drivers/input/misc/powermate.c | |||
@@ -96,10 +96,10 @@ static void powermate_irq(struct urb *urb) | |||
96 | case -ENOENT: | 96 | case -ENOENT: |
97 | case -ESHUTDOWN: | 97 | case -ESHUTDOWN: |
98 | /* this urb is terminated, clean up */ | 98 | /* this urb is terminated, clean up */ |
99 | dbg("%s - urb shutting down with status: %d", __FUNCTION__, urb->status); | 99 | dbg("%s - urb shutting down with status: %d", __func__, urb->status); |
100 | return; | 100 | return; |
101 | default: | 101 | default: |
102 | dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status); | 102 | dbg("%s - nonzero urb status received: %d", __func__, urb->status); |
103 | goto exit; | 103 | goto exit; |
104 | } | 104 | } |
105 | 105 | ||
@@ -112,7 +112,7 @@ exit: | |||
112 | retval = usb_submit_urb (urb, GFP_ATOMIC); | 112 | retval = usb_submit_urb (urb, GFP_ATOMIC); |
113 | if (retval) | 113 | if (retval) |
114 | err ("%s - usb_submit_urb failed with result %d", | 114 | err ("%s - usb_submit_urb failed with result %d", |
115 | __FUNCTION__, retval); | 115 | __func__, retval); |
116 | } | 116 | } |
117 | 117 | ||
118 | /* Decide if we need to issue a control message and do so. Must be called with pm->lock taken */ | 118 | /* Decide if we need to issue a control message and do so. Must be called with pm->lock taken */ |
diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c index 46279ef2b649..8a949e7d8f4e 100644 --- a/drivers/input/misc/yealink.c +++ b/drivers/input/misc/yealink.c | |||
@@ -427,7 +427,7 @@ static void urb_irq_callback(struct urb *urb) | |||
427 | int ret; | 427 | int ret; |
428 | 428 | ||
429 | if (urb->status) | 429 | if (urb->status) |
430 | err("%s - urb status %d", __FUNCTION__, urb->status); | 430 | err("%s - urb status %d", __func__, urb->status); |
431 | 431 | ||
432 | switch (yld->irq_data->cmd) { | 432 | switch (yld->irq_data->cmd) { |
433 | case CMD_KEYPRESS: | 433 | case CMD_KEYPRESS: |
@@ -449,7 +449,7 @@ static void urb_irq_callback(struct urb *urb) | |||
449 | 449 | ||
450 | ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC); | 450 | ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC); |
451 | if (ret) | 451 | if (ret) |
452 | err("%s - usb_submit_urb failed %d", __FUNCTION__, ret); | 452 | err("%s - usb_submit_urb failed %d", __func__, ret); |
453 | } | 453 | } |
454 | 454 | ||
455 | static void urb_ctl_callback(struct urb *urb) | 455 | static void urb_ctl_callback(struct urb *urb) |
@@ -458,7 +458,7 @@ static void urb_ctl_callback(struct urb *urb) | |||
458 | int ret; | 458 | int ret; |
459 | 459 | ||
460 | if (urb->status) | 460 | if (urb->status) |
461 | err("%s - urb status %d", __FUNCTION__, urb->status); | 461 | err("%s - urb status %d", __func__, urb->status); |
462 | 462 | ||
463 | switch (yld->ctl_data->cmd) { | 463 | switch (yld->ctl_data->cmd) { |
464 | case CMD_KEYPRESS: | 464 | case CMD_KEYPRESS: |
@@ -473,7 +473,7 @@ static void urb_ctl_callback(struct urb *urb) | |||
473 | } | 473 | } |
474 | 474 | ||
475 | if (ret) | 475 | if (ret) |
476 | err("%s - usb_submit_urb failed %d", __FUNCTION__, ret); | 476 | err("%s - usb_submit_urb failed %d", __func__, ret); |
477 | } | 477 | } |
478 | 478 | ||
479 | /******************************************************************************* | 479 | /******************************************************************************* |
@@ -505,7 +505,7 @@ static int input_open(struct input_dev *dev) | |||
505 | struct yealink_dev *yld = input_get_drvdata(dev); | 505 | struct yealink_dev *yld = input_get_drvdata(dev); |
506 | int i, ret; | 506 | int i, ret; |
507 | 507 | ||
508 | dbg("%s", __FUNCTION__); | 508 | dbg("%s", __func__); |
509 | 509 | ||
510 | /* force updates to device */ | 510 | /* force updates to device */ |
511 | for (i = 0; i<sizeof(yld->master); i++) | 511 | for (i = 0; i<sizeof(yld->master); i++) |
@@ -521,7 +521,7 @@ static int input_open(struct input_dev *dev) | |||
521 | yld->ctl_data->sum = 0x100-CMD_INIT-10; | 521 | yld->ctl_data->sum = 0x100-CMD_INIT-10; |
522 | if ((ret = usb_submit_urb(yld->urb_ctl, GFP_KERNEL)) != 0) { | 522 | if ((ret = usb_submit_urb(yld->urb_ctl, GFP_KERNEL)) != 0) { |
523 | dbg("%s - usb_submit_urb failed with result %d", | 523 | dbg("%s - usb_submit_urb failed with result %d", |
524 | __FUNCTION__, ret); | 524 | __func__, ret); |
525 | return ret; | 525 | return ret; |
526 | } | 526 | } |
527 | return 0; | 527 | return 0; |