X-GM-THRID: 6332017798578962432 X-Received: by 10.28.207.3 with SMTP id f3mr497075wmg.10.1474288011925; Mon, 19 Sep 2016 05:26:51 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.46.71.140 with SMTP id u134ls851111lja.33.gmail; Mon, 19 Sep 2016 05:26:51 -0700 (PDT) X-Received: by 10.25.204.21 with SMTP id c21mr659564lfg.19.1474288011267; Mon, 19 Sep 2016 05:26:51 -0700 (PDT) Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr. [192.134.164.104]) by gmr-mx.google.com with ESMTPS id 82si1412160wmg.3.2016.09.19.05.26.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 05:26:51 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.104; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.30,361,1470693600"; d="scan'208";a="193908411" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Sep 2016 14:26:50 +0200 Date: Mon, 19 Sep 2016 14:26:48 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Georgiana Rodica Chelu cc: outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] [PATCH] staging: iio: meter: ade7758_ring: Match alignment with open parenthesis In-Reply-To: <20160919122255.GA11414@fireworks> Message-ID: References: <20160919122255.GA11414@fireworks> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 19 Sep 2016, Georgiana Rodica Chelu wrote: > This patch indents the lines to match alignment with the open parenthesis. > Also, it organizes the parameters on a single line, in case the > modifications do not break the rule of 80 characters per line. The patch looks like it improves the readability of the code. The commit message could be more concise though. Use the imperative. It is not necessary to say "This patch", since it is clear what is being discussed. So the first sentence could be, for example, "Indent lines to match..." Also, I guess there is some maintainer for this driver. You should send patches to tha maintainer too. See the Submit a patch section of the tutorial to see the suggested call to get_maintainer.pl to find who to also send the patch to. julia > > Signed-off-by: Georgiana Rodica Chelu > --- > drivers/staging/iio/meter/ade7758_ring.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/drivers/staging/iio/meter/ade7758_ring.c b/drivers/staging/iio/meter/ade7758_ring.c > index a6b76d4..57c213d 100644 > --- a/drivers/staging/iio/meter/ade7758_ring.c > +++ b/drivers/staging/iio/meter/ade7758_ring.c > @@ -38,18 +38,14 @@ static int ade7758_write_waveform_type(struct device *dev, unsigned int type) > int ret; > u8 reg; > > - ret = ade7758_spi_read_reg_8(dev, > - ADE7758_WAVMODE, > - ®); > + ret = ade7758_spi_read_reg_8(dev, ADE7758_WAVMODE, ®); > if (ret) > goto out; > > reg &= ~0x1F; > reg |= type & 0x1F; > > - ret = ade7758_spi_write_reg_8(dev, > - ADE7758_WAVMODE, > - reg); > + ret = ade7758_spi_write_reg_8(dev, ADE7758_WAVMODE, reg); > out: > return ret; > } > @@ -94,7 +90,7 @@ static int ade7758_ring_preenable(struct iio_dev *indio_dev) > indio_dev->masklength); > > ade7758_write_waveform_type(&indio_dev->dev, > - indio_dev->channels[channel].address); > + indio_dev->channels[channel].address); > > return 0; > } > -- > 2.7.4 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160919122255.GA11414%40fireworks. > For more options, visit https://groups.google.com/d/optout. >