Skip to content

Commit f2bb26b

Browse files
Bob Rossdtor
authored andcommitted
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 404c3bc commit f2bb26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/mouse/synaptics_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static int synusb_probe(struct usb_interface *intf,
364364
le16_to_cpu(udev->descriptor.idProduct));
365365

366366
if (synusb->flags & SYNUSB_STICK)
367-
strlcat(synusb->name, " (Stick) ", sizeof(synusb->name));
367+
strlcat(synusb->name, " (Stick)", sizeof(synusb->name));
368368

369369
usb_make_path(udev, synusb->phys, sizeof(synusb->phys));
370370
strlcat(synusb->phys, "/input0", sizeof(synusb->phys));

0 commit comments

Comments
 (0)