From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133Ab2GHAwi (ORCPT ); Sat, 7 Jul 2012 20:52:38 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:35100 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751002Ab2GHAwZ (ORCPT ); Sat, 7 Jul 2012 20:52:25 -0400 Date: Sat, 7 Jul 2012 17:52:20 -0700 From: Dmitry Torokhov To: Bob Ross Cc: Jan Steinhoff , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] synaptics_usb: Remove TrackPoint name trailing whitespace Message-ID: <20120708005220.GB19007@core.coreip.homeip.net> References: <20120706122817.4ff2cdbf@atom.pigiron.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120706122817.4ff2cdbf@atom.pigiron.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2012 at 12:28:17PM -0500, Bob Ross wrote: > > 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 Applied, thank you Bob. > --- > This patch was based from the "torvalds" git tree. > > drivers/input/mouse/synaptics_usb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/mouse/synaptics_usb.c b/drivers/input/mouse/synaptics_usb.c > index 3c5eaaa..64cf34e 100644 > --- a/drivers/input/mouse/synaptics_usb.c > +++ b/drivers/input/mouse/synaptics_usb.c > @@ -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)); > -- > 1.7.11 > -- Dmitry