Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753481AbcCYDTz (ORCPT ); Thu, 24 Mar 2016 23:19:55 -0400 Received: from smtprelay0101.hostedemail.com ([216.40.44.101]:59783 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752834AbcCYDTx (ORCPT ); Thu, 24 Mar 2016 23:19:53 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:152:355:379:541:599:960:968:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3872:3873:4250:4321:5007:9391:10004:10400:10848:11026:11473:11658:11783:11914:12043:12296:12438:12517:12519:12555:12740:13069:13311:13357:13894:14180:14181:14659:14721:21060:21080:30054:30090: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: drop04_902a80477c412 X-Filterd-Recvd-Size: 2551 Message-ID: <1458875989.3209.11.camel@perches.com> Subject: Re: [PATCH 1/2] staging: dgnc: fix 'line over 80 characters' From: Joe Perches To: Daeseok Youn , lidza.louina@gmail.com Cc: markh@compro.net, gregkh@linuxfoundation.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Date: Thu, 24 Mar 2016 20:19:49 -0700 In-Reply-To: <20160325024406.GA23833@SEL-JYOUN-D1> References: <20160325024406.GA23833@SEL-JYOUN-D1> Content-Type: text/plain; charset="UTF-8" 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: 1589 Lines: 42 On Fri, 2016-03-25 at 11:44 +0900, Daeseok Youn wrote: > fix checkpatch.pl warning about 'line over 80 characters' > in dgnc_neo.c [] > diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c [] > @@ -77,7 +77,8 @@ struct board_ops dgnc_neo_ops = { >   .send_immediate_char = neo_send_immediate_char >  }; >   > -static uint dgnc_offset_table[8] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; > +static uint dgnc_offset_table[8] = { 0x01, 0x02, 0x04, 0x08, > +      0x10, 0x20, 0x40, 0x80 }; It may be better to remove this array and use BIT or << where dgnc_offset_table is used instead. If not, this should be const. static const uint dgnc_offset_table[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; > @@ -116,7 +117,8 @@ static inline void neo_set_cts_flow_control(struct channel_t *ch) >   writeb(efr, &ch->ch_neo_uart->efr); >   >   /* Turn on table D, with 8 char hi/low watermarks */ > - writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), &ch->ch_neo_uart->fctr); > + writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), > + &ch->ch_neo_uart->fctr); You could remove parentheses here around the CONST | CONST > @@ -150,7 +152,8 @@ static inline void neo_set_rts_flow_control(struct channel_t *ch) >   /* Turn on UART enhanced bits */ >   writeb(efr, &ch->ch_neo_uart->efr); >   > - writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), &ch->ch_neo_uart->fctr); > + writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), > + &ch->ch_neo_uart->fctr); and here and all the other writeb uses