Skip to content

Commit

Permalink
Input: synaptics_usb - Remove TrackPoint name trailing whitespace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Ross authored and Dmitry Torokhov committed Jul 7, 2012
1 parent 404c3bc commit f2bb26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/synaptics_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f2bb26b

Please sign in to comment.