Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753128AbbGUIOt (ORCPT ); Tue, 21 Jul 2015 04:14:49 -0400 Received: from smtprelay0054.hostedemail.com ([216.40.44.54]:49262 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751950AbbGUIOp (ORCPT ); Tue, 21 Jul 2015 04:14:45 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:973:982: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:3866:3868:3870:3871:3872:4250:4321:4605:4823:5007:6261:8784:10004:10400:10848:11232:11473:11658:11914:12043:12438:12517:12519:12555:12740:13069:13311:13357:21080,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 X-HE-Tag: knife09_4655f11318e02 X-Filterd-Recvd-Size: 2404 Message-ID: <1437466481.28284.39.camel@perches.com> Subject: Re: [PATCH 1/2] sm750fb: coding style fixes lines over 80 chars From: Joe Perches To: Vinay Simha BN Cc: Sudip Mukherjee , Teddy Wang , Greg Kroah-Hartman , "open list:STAGING - SILICON MOTION SM750 FRAME BUFFER DRIVER" , "open list:STAGING SUBSYSTEM" , open list Date: Tue, 21 Jul 2015 01:14:41 -0700 In-Reply-To: <1437464402-18451-1-git-send-email-simhavcs@gmail.com> References: <1437461084-17565-1-git-send-email-simhavcs@gmail.com> <1437464402-18451-1-git-send-email-simhavcs@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 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: 1454 Lines: 48 On Tue, 2015-07-21 at 13:10 +0530, Vinay Simha BN wrote: > scripts/checkpatch.pl kernel coding style fixes of WARNING Please run your patches through scripts/checkpatch.pl --strict > diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h > index b7cf6b2..abad4fe 100644 > --- a/drivers/staging/sm750fb/ddk750_power.h > +++ b/drivers/staging/sm750fb/ddk750_power.h > @@ -12,9 +12,9 @@ DPMS_t; > #define setDAC(off) \ > { \ > POKE32(MISC_CTRL, FIELD_VALUE(PEEK32(MISC_CTRL), \ > - MISC_CTRL, \ > - DAC_POWER, \ > - off)); \ > + MISC_CTRL, \ > + DAC_POWER, \ > + off)); \ This is used only once and might be better expanded in-place instead. It's a single statement macro and doesn't need braces or a terminating ; and it shouldn't be indented 2 tabs. #define setDAC(off) \ POKE32(MISC_CTRL, \ FIELD_VALUE(PEEK32(MISC_CTRL), MISC_CTRL, DAC_POWER, \ off)) > diff --git a/drivers/staging/sm750fb/ddk750_sii164.h b/drivers/staging/sm750fb/ddk750_sii164.h [] > @@ -5,10 +5,11 @@ [] > + SII164_HOTPLUG_DISABLE = 0, /* Disable Hot Plug output bit > + (always high) */ comment style isn't correct etc... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/