Input: synaptics_usb - Remove TrackPoint name trailing whitespace
authorBob Ross <pigiron@gmx.com>
Fri, 6 Jul 2012 18:34:47 +0000 (11:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 7 Jul 2012 02:12:17 +0000 (19:12 -0700)
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>
drivers/input/mouse/synaptics_usb.c

index 3c5eaaa5d154a115813e7d013195ac971ebaf59b..64cf34ea7604cd115e5b383103bfa30913c13959 100644 (file)
@@ -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));