From patchwork Fri Jul 6 17:28:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Ross X-Patchwork-Id: 1166761 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 708163FC33 for ; Fri, 6 Jul 2012 17:28:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756529Ab2GFR2e (ORCPT ); Fri, 6 Jul 2012 13:28:34 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:59751 "HELO mailout-us.mail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1753986Ab2GFR2d (ORCPT ); Fri, 6 Jul 2012 13:28:33 -0400 Received: (qmail invoked by alias); 06 Jul 2012 17:28:21 -0000 Received: from cpe-70-113-126-162.austin.res.rr.com (EHLO atom.pigiron.org) [70.113.126.162] by mail.gmx.com (mp-us008) with SMTP; 06 Jul 2012 13:28:21 -0400 X-Authenticated: #53258690 X-Provags-ID: V01U2FsdGVkX19FinRgWNlF5hwxWXkCVxFcI98a7RxmXsiIxxUH1a tgOpS5fheXd3vD Date: Fri, 6 Jul 2012 12:28:17 -0500 From: Bob Ross To: Dmitry Torokhov , Jan Steinhoff , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] synaptics_usb: Remove TrackPoint name trailing whitespace Message-ID: <20120706122817.4ff2cdbf@atom.pigiron.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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 --- 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));