Commit:     7b6dff982b063b1b15c30508f16863e5449e7229
Parent:     749aea73aaf4ff1dbd83c2021b57a4dde6bbe2b9
Author:     Vladimir Shebordaev <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 6 21:32:16 2007 -0400
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Thu Sep 6 21:32:16 2007 -0400

    Input: usbtouchscreen - correctly set 'phys'
    This patch fixes a nasty typo in usbtouchscreen driver. The typo
    is inherited from the original mtouchusb. It used to make the input
    subsytem to incorrectly report the physical device ids to userspace
    that in turn is very confusing for, e.g. XInput hotplug facilities
    in setups with multiple identical touchscreens.
    Signed-off-by: Vladimir Shebordaev <[EMAIL PROTECTED]>
    Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]>
 drivers/input/touchscreen/usbtouchscreen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/touchscreen/usbtouchscreen.c 
index b407028..741f6c6 100644
--- a/drivers/input/touchscreen/usbtouchscreen.c
+++ b/drivers/input/touchscreen/usbtouchscreen.c
@@ -767,7 +767,7 @@ static int usbtouch_probe(struct usb_interface *intf,
        usb_make_path(udev, usbtouch->phys, sizeof(usbtouch->phys));
-       strlcpy(usbtouch->phys, "/input0", sizeof(usbtouch->phys));
+       strlcat(usbtouch->phys, "/input0", sizeof(usbtouch->phys));
        input_dev->name = usbtouch->name;
        input_dev->phys = usbtouch->phys;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to