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/touchscreen | |
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/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index 3a0a8ca57076..792b2708a137 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
@@ -262,7 +262,7 @@ static int mtouch_init(struct usbtouch_usb *usbtouch) | |||
262 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 262 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
263 | 1, 0, NULL, 0, USB_CTRL_SET_TIMEOUT); | 263 | 1, 0, NULL, 0, USB_CTRL_SET_TIMEOUT); |
264 | dbg("%s - usb_control_msg - MTOUCHUSB_RESET - bytes|err: %d", | 264 | dbg("%s - usb_control_msg - MTOUCHUSB_RESET - bytes|err: %d", |
265 | __FUNCTION__, ret); | 265 | __func__, ret); |
266 | if (ret < 0) | 266 | if (ret < 0) |
267 | return ret; | 267 | return ret; |
268 | msleep(150); | 268 | msleep(150); |
@@ -273,7 +273,7 @@ static int mtouch_init(struct usbtouch_usb *usbtouch) | |||
273 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 273 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
274 | 1, 1, NULL, 0, USB_CTRL_SET_TIMEOUT); | 274 | 1, 1, NULL, 0, USB_CTRL_SET_TIMEOUT); |
275 | dbg("%s - usb_control_msg - MTOUCHUSB_ASYNC_REPORT - bytes|err: %d", | 275 | dbg("%s - usb_control_msg - MTOUCHUSB_ASYNC_REPORT - bytes|err: %d", |
276 | __FUNCTION__, ret); | 276 | __func__, ret); |
277 | if (ret >= 0) | 277 | if (ret >= 0) |
278 | break; | 278 | break; |
279 | if (ret != -EPIPE) | 279 | if (ret != -EPIPE) |
@@ -793,18 +793,18 @@ static void usbtouch_irq(struct urb *urb) | |||
793 | case -ETIME: | 793 | case -ETIME: |
794 | /* this urb is timing out */ | 794 | /* this urb is timing out */ |
795 | dbg("%s - urb timed out - was the device unplugged?", | 795 | dbg("%s - urb timed out - was the device unplugged?", |
796 | __FUNCTION__); | 796 | __func__); |
797 | return; | 797 | return; |
798 | case -ECONNRESET: | 798 | case -ECONNRESET: |
799 | case -ENOENT: | 799 | case -ENOENT: |
800 | case -ESHUTDOWN: | 800 | case -ESHUTDOWN: |
801 | /* this urb is terminated, clean up */ | 801 | /* this urb is terminated, clean up */ |
802 | dbg("%s - urb shutting down with status: %d", | 802 | dbg("%s - urb shutting down with status: %d", |
803 | __FUNCTION__, urb->status); | 803 | __func__, urb->status); |
804 | return; | 804 | return; |
805 | default: | 805 | default: |
806 | dbg("%s - nonzero urb status received: %d", | 806 | dbg("%s - nonzero urb status received: %d", |
807 | __FUNCTION__, urb->status); | 807 | __func__, urb->status); |
808 | goto exit; | 808 | goto exit; |
809 | } | 809 | } |
810 | 810 | ||
@@ -814,7 +814,7 @@ exit: | |||
814 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 814 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
815 | if (retval) | 815 | if (retval) |
816 | err("%s - usb_submit_urb failed with result: %d", | 816 | err("%s - usb_submit_urb failed with result: %d", |
817 | __FUNCTION__, retval); | 817 | __func__, retval); |
818 | } | 818 | } |
819 | 819 | ||
820 | static int usbtouch_open(struct input_dev *input) | 820 | static int usbtouch_open(struct input_dev *input) |
@@ -883,7 +883,7 @@ static int usbtouch_probe(struct usb_interface *intf, | |||
883 | 883 | ||
884 | usbtouch->irq = usb_alloc_urb(0, GFP_KERNEL); | 884 | usbtouch->irq = usb_alloc_urb(0, GFP_KERNEL); |
885 | if (!usbtouch->irq) { | 885 | if (!usbtouch->irq) { |
886 | dbg("%s - usb_alloc_urb failed: usbtouch->irq", __FUNCTION__); | 886 | dbg("%s - usb_alloc_urb failed: usbtouch->irq", __func__); |
887 | goto out_free_buffers; | 887 | goto out_free_buffers; |
888 | } | 888 | } |
889 | 889 | ||
@@ -939,14 +939,14 @@ static int usbtouch_probe(struct usb_interface *intf, | |||
939 | if (type->init) { | 939 | if (type->init) { |
940 | err = type->init(usbtouch); | 940 | err = type->init(usbtouch); |
941 | if (err) { | 941 | if (err) { |
942 | dbg("%s - type->init() failed, err: %d", __FUNCTION__, err); | 942 | dbg("%s - type->init() failed, err: %d", __func__, err); |
943 | goto out_free_buffers; | 943 | goto out_free_buffers; |
944 | } | 944 | } |
945 | } | 945 | } |
946 | 946 | ||
947 | err = input_register_device(usbtouch->input); | 947 | err = input_register_device(usbtouch->input); |
948 | if (err) { | 948 | if (err) { |
949 | dbg("%s - input_register_device failed, err: %d", __FUNCTION__, err); | 949 | dbg("%s - input_register_device failed, err: %d", __func__, err); |
950 | goto out_free_buffers; | 950 | goto out_free_buffers; |
951 | } | 951 | } |
952 | 952 | ||
@@ -966,12 +966,12 @@ static void usbtouch_disconnect(struct usb_interface *intf) | |||
966 | { | 966 | { |
967 | struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); | 967 | struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); |
968 | 968 | ||
969 | dbg("%s - called", __FUNCTION__); | 969 | dbg("%s - called", __func__); |
970 | 970 | ||
971 | if (!usbtouch) | 971 | if (!usbtouch) |
972 | return; | 972 | return; |
973 | 973 | ||
974 | dbg("%s - usbtouch is initialized, cleaning up", __FUNCTION__); | 974 | dbg("%s - usbtouch is initialized, cleaning up", __func__); |
975 | usb_set_intfdata(intf, NULL); | 975 | usb_set_intfdata(intf, NULL); |
976 | usb_kill_urb(usbtouch->irq); | 976 | usb_kill_urb(usbtouch->irq); |
977 | input_unregister_device(usbtouch->input); | 977 | input_unregister_device(usbtouch->input); |