Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753209AbcDBRaf (ORCPT ); Sat, 2 Apr 2016 13:30:35 -0400 Received: from smtprelay0042.hostedemail.com ([216.40.44.42]:53390 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752180AbcDBRad (ORCPT ); Sat, 2 Apr 2016 13:30:33 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:4321:4823:5007:10004:10400:10848:11026:11232:11473:11658:11783:11914:12043:12294:12296:12517:12519:12740:13069:13161:13229:13311:13357:13439:13894:14659:14721:21080:30012:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: paint40_2175278747726 X-Filterd-Recvd-Size: 2301 Message-ID: <1459618198.15622.3.camel@perches.com> Subject: Re: [PATCH v2 10/14] USB: ch341: fix coding style From: Joe Perches To: Grigori Goronzy , Johan Hovold Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 02 Apr 2016 10:29:58 -0700 In-Reply-To: <1459616843-23829-11-git-send-email-greg@chown.ath.cx> References: <1459616843-23829-1-git-send-email-greg@chown.ath.cx> <1459616843-23829-11-git-send-email-greg@chown.ath.cx> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 33 On Sat, 2016-04-02 at 19:07 +0200, Grigori Goronzy wrote: > No functional change.??The following adjustments were made to be more in > line with official coding style and to be more consistent. > > Stop mixing tabs and spaces for alignment. Align continuations in > function prototypes correctly.??Be more consistent with indentation of > statements broken into multiple lines.??Break some long lines properly. > Stop putting labels and statements into the same line.??Use braces > consistently for a single statement. Most of the whitespace only changes are undesired. Multi-line statements here are using alignment to open parenthesis which for some is the preferred style. > > diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c [] > @@ -108,11 +108,11 @@ static int ch341_control_out(struct usb_device *dev, u8 request, > ? int r; > ? > ? dev_dbg(&dev->dev, "ch341_control_out(%02x,%02x,%04x,%04x)\n", > - USB_DIR_OUT|0x40, (int)request, (int)value, (int)index); > + USB_DIR_OUT|0x40, (int)request, (int)value, (int)index); > ? > ? r = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request, > - ????USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_OUT, > - ????value, index, NULL, 0, DEFAULT_TIMEOUT); > + USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_OUT, > + value, index, NULL, 0, DEFAULT_TIMEOUT); The original code is fine. etc.