Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753AbdHTErr (ORCPT ); Sun, 20 Aug 2017 00:47:47 -0400 Received: from smtprelay0075.hostedemail.com ([216.40.44.75]:50042 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751105AbdHTErq (ORCPT ); Sun, 20 Aug 2017 00:47:46 -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:2194:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3872:4321:5007:10004:10400:10848:11026:11232:11473:11658:11914:12438:12740:12760:12895:13069:13161:13229:13311:13357:13439:14659:14721:21080:21451:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: field53_4255b3e981312 X-Filterd-Recvd-Size: 2430 Message-ID: <1503204448.6933.1.camel@perches.com> Subject: Re: [PATCH v2 1/4] staging: pi433: Style fix - Correct long lines From: Joe Perches To: Dan Carpenter , Rishabh Hardas Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, rjosephwright@gmail.com, linux@Wolf-Entwicklungen.de, colin.king@canonical.com Date: Sat, 19 Aug 2017 21:47:28 -0700 In-Reply-To: <20170816073106.vyhezn7f2recdarp@mwanda> References: <2adda87146ff5161e33f0379c662908ecc1f3e0a.1501759442.git.rishabhhardas@gmail.com> <20170816073106.vyhezn7f2recdarp@mwanda> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 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: 1363 Lines: 28 On Wed, 2017-08-16 at 10:31 +0300, Dan Carpenter wrote: > On Wed, Aug 16, 2017 at 10:53:18AM +0530, Rishabh Hardas wrote: > > @@ -143,10 +142,13 @@ struct pi433_rx_cfg { > > > > #define PI433_IOC_MAGIC 'r' > > > > -#define PI433_IOC_RD_TX_CFG _IOR(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR, char[sizeof(struct pi433_tx_cfg)]) > > -#define PI433_IOC_WR_TX_CFG _IOW(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR, char[sizeof(struct pi433_tx_cfg)]) > > - > > -#define PI433_IOC_RD_RX_CFG _IOR(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR, char[sizeof(struct pi433_rx_cfg)]) > > -#define PI433_IOC_WR_RX_CFG _IOW(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR, char[sizeof(struct pi433_rx_cfg)]) > > +#define PI433_IOC_RD_TX_CFG _IOR(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR,\ > > + char[sizeof(struct pi433_tx_cfg)]) > > +#define PI433_IOC_WR_TX_CFG _IOW(PI433_IOC_MAGIC, PI433_TX_CFG_IOCTL_NR,\ > > + char[sizeof(struct pi433_tx_cfg)]) > > +#define PI433_IOC_RD_RX_CFG _IOR(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR,\ > > + char[sizeof(struct pi433_rx_cfg)]) > > +#define PI433_IOC_WR_RX_CFG _IOW(PI433_IOC_MAGIC, PI433_RX_CFG_IOCTL_NR,\ > > + char[sizeof(struct pi433_rx_cfg)]) > > > These don't help readability. The original was better. The original wasn't any good either. It'd be better to avoid the macros altogether as almost all are use-once.