Commit 7b6dff98 authored by Vladimir Shebordaev's avatar Vladimir Shebordaev Committed by Dmitry Torokhov

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: default avatarVladimir Shebordaev <vshebordaev@mail.ru>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 749aea73
......@@ -767,7 +767,7 @@ static int usbtouch_probe(struct usb_interface *intf,
le16_to_cpu(udev->descriptor.idProduct));
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment