Skip to contentSkip to conversation

synaptics_usb: Remove TrackPoint name trailing whitespace

PATCH Applied Bob Ross 2 participants 2 messages Jul 6, 2012 – Jul 8, 2012

Subsystems (2)
lore
Share & tools
lore

Bob Ross

author
#0 lore raw

PATCH 1/1 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.

---
This patch was based from the "torvalds" git tree.

 drivers/input/mouse/synaptics_usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/synaptics_usb.c +1 -1
index 3c5eaaa..64cf34e 100644
@@ -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));
Signature · 1 line
1.7.11
maintainer Applied
#1 lore raw
Quoted 9 lines · Bob Ross

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.

Applied, thank you Bob.

Quoted 22 lines

---
This patch was based from the "torvalds" git tree.

 drivers/input/mouse/synaptics_usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/synaptics_usb.c +1 -1
index 3c5eaaa..64cf34e 100644
@@ -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));
Signature · 1 line
1.7.11
Signature · 1 line
Dmitry