diff options
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); |