Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935925AbcLVBKg (ORCPT ); Wed, 21 Dec 2016 20:10:36 -0500 Received: from smtprelay0062.hostedemail.com ([216.40.44.62]:60363 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932586AbcLVBKe (ORCPT ); Wed, 21 Dec 2016 20:10:34 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1963:2198:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3355:3622:3865:3866:3867:3868:3870:3871:3872:3874:4250:4321:5007:7903:8527:8957:10004:10400:10848:11232:11657:11658:11914:12043:12663:12740:12760:12895:13149:13161:13229:13230:13439:14096:14097:14659:14721:21080:21324:21434:21451:30012:30054:30070:30080: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: glove10_4913a9f9e006 X-Filterd-Recvd-Size: 3295 Message-ID: <1482369030.1945.3.camel@perches.com> Subject: Re: [PATCH] indention and space fixes to align with linux style From: Joe Perches To: Scott Matheina , gregkh@linuxfoundation.org Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Wed, 21 Dec 2016 17:10:30 -0800 In-Reply-To: <518f5c19-26f3-9896-64c8-ec2a2b592c5c@matheina.com> References: <1482289187-7276-1-git-send-email-scott@matheina.com> <1482290625.1984.33.camel@perches.com> <518f5c19-26f3-9896-64c8-ec2a2b592c5c@matheina.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2108 Lines: 63 On Wed, 2016-12-21 at 19:02 -0600, Scott Matheina wrote: > On 12/20/2016 09:23 PM, Joe Perches wrote: > > On Tue, 2016-12-20 at 20:58 -0600, Scott Matheina wrote: > > > Fixed indention and space issues to align the code with the linux style guide. > > [] > > > diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c > > [] > > > @@ -176,16 +176,16 @@ > > > */ > > > > > > struct adt7316_chip_info { > > > - struct adt7316_bus bus; > > > - u16 ldac_pin; > > > - u16 int_mask; /* 0x2f */ > > > - u8 config1; > > > - u8 config2; > > > - u8 config3; > > > - u8 dac_config; /* DAC config */ > > > - u8 ldac_config; /* LDAC config */ > > > - u8 dac_bits; /* 8, 10, 12 */ > > > - u8 id; /* chip id */ > > > + struct adt7316_bus bus; > > > + u16 ldac_pin; > > > + u16 int_mask; /* 0x2f */ > > > + u8 config1; > > > + u8 config2; > > > + u8 config3; > > > + u8 dac_config; /* DAC config */ > > > + u8 ldac_config; /* LDAC config */ > > > + u8 dac_bits; /* 8, 10, 12 */ > > > + u8 id; /* chip id */ > > > }; [] > > The style above is fine and doesn't need > > to be changed. It is not in CodingStyle > > as preferred one way or the other. [] > The problem I'm running into is when I use Lindent, it automatically > makes the > change above, so I can't use that tool for the file. Even when I correct > the changes > in the file git diff still shows the non-change, so I'm just trying to > figure out how > to use the given tools without having these issues. I'm going to just go > manual with > my future changes is suppose. Lindent isn't actually a very good source code reformatter for Linux kernel code. checkpatch can perform some of these transformations with the --fix or --fix-inplace option. Making changes for human readability of the source code is generally good. It's OK to start to read and familiarize yourself the the kernel styles by using these tools, but better is to find and fix actual defects in code instead of producing whitespace changes that don't actually create any compiler output differences. Welcome in any case.