mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 00:40:55 +07:00
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 <vshebordaev@mail.ru> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
749aea73aa
commit
7b6dff982b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user