mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
Input: synaptics_usb - Remove TrackPoint name trailing whitespace
The USB TrackPoint name string contains a space at the trailing end that can cause confusion/difficulty when creating udev rules. Example: "Synaptics Inc. Composite TouchPad / TrackPoint (Stick) " This patch removes the trailing space. Signed-off-by: Bob Ross <pigiron@gmx.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
404c3bc30c
commit
f2bb26b9b7
@ -364,7 +364,7 @@ static int synusb_probe(struct usb_interface *intf,
|
||||
le16_to_cpu(udev->descriptor.idProduct));
|
||||
|
||||
if (synusb->flags & SYNUSB_STICK)
|
||||
strlcat(synusb->name, " (Stick) ", sizeof(synusb->name));
|
||||
strlcat(synusb->name, " (Stick)", sizeof(synusb->name));
|
||||
|
||||
usb_make_path(udev, synusb->phys, sizeof(synusb->phys));
|
||||
strlcat(synusb->phys, "/input0", sizeof(synusb->phys));
|
||||
|
Loading…
Reference in New Issue
Block a user