Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5784374imm; Tue, 16 Oct 2018 16:30:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV60uJG60O6kIodJjTjqgSuMxMuMz4KNrUh7u7T8rAmre1kjyuzKS3AEOJyBV9DMKHklsu7Vj X-Received: by 2002:a62:2fc1:: with SMTP id v184-v6mr24132097pfv.115.1539732656323; Tue, 16 Oct 2018 16:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539732656; cv=none; d=google.com; s=arc-20160816; b=uKXg7m0fE2bMafN9I+Zh61872IJtUXufBfUjmbINtMfTZNai2igknDU1Py5yOZon5b 0wloBAQFtT+Pd3nvVQGGR7NOrfwp+6ceKFiMTVI8d9wM5bF+YjLQOCr4ePzi/uTVdKPS IF6LCcsr1jkZ1dFW4I8r1F6HIa+esyhCQxr9Tgv+GDRU0rD2S+aae2o9bLvnvT3BA/CS 1F+V0NJXQd7kbjZyfkJurxCdjLsAsWdoZKVtQFweCLVIGCBHWhGqb2Z4iqi1lSHTGVMB Rq4Wlrcv6HuXzG/6O5qahCOWl3od0MvhzznTd9XocMNIZoVfk/4WCG5ahX+UVf6/ZmnN HxvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8H3V239BtXTCdLm2SgsF3fXkez3c39kLhbYNnb2RfDc=; b=OT+GWo7O6ObPLag+358yLmIOYNNOfWCBJURByTr4iFeAr0F+KkOFgF3m4h47Z4FDzg hmGGR1+p5f7LgrTML5ncNVMp+IJXNHRgGWzdI0/YkxKDEr7CQpPPDIryvaJshj3BwDym ngzdtIEEPLvtnxPWMlCy/7wrTFlR5eH0jDsGGjyYa+6GJz96Io7zW9yE1hqqmbcFhNnh 6DlZqb+9u/lsIsiAP+UZuHxWwhDmg8PeUzCH5abHHJj+P+FKukz1IVZAdcXoTiVZyiOQ c6/8+MO6b+y6Xcr6l4+dAZA/bjl/ohAdh6Nzmn7qIRgC4T53L68Mga1BLmf5bmEtC/Uu ZwBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=brPFVW3g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si14252552pgg.464.2018.10.16.16.30.35; Tue, 16 Oct 2018 16:30:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=brPFVW3g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727274AbeJQHWf (ORCPT + 99 others); Wed, 17 Oct 2018 03:22:35 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:43871 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbeJQHWe (ORCPT ); Wed, 17 Oct 2018 03:22:34 -0400 Received: by mail-oi1-f194.google.com with SMTP id s69-v6so19553914oie.10 for ; Tue, 16 Oct 2018 16:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp-br.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8H3V239BtXTCdLm2SgsF3fXkez3c39kLhbYNnb2RfDc=; b=brPFVW3gT1eq5Z7eZ4ma6KSGjP2CCoOQYwMBfdtj4Cq2ssJhj7o+CX8sv5k9m28g9Z mczoOLISgerhNGyDH60yjETbq0R3oltQZ2WuViYxMpCp2/7IJbF7wLdQ0wGb/UDcCcMq 4EH2ED6jaE0SLALTnZ9FKLVPVDEr4OLqgJi9CJkfGEl54429CV5w04OVxY5w5C18Sd1Q /gqzgnd/XLv7o6ibo8g24l0lvcO/Sk5cqyLC2WTVLF3sa/Byv2qtB9WliXCw5eQhvoTP /fbucd0nDsTb/z+RCENKQ/BIRsKEiGHEKZw5quIScY/2ptx9Pk4j1ktsW9+XXD20vx90 IImQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8H3V239BtXTCdLm2SgsF3fXkez3c39kLhbYNnb2RfDc=; b=tner+z2aRD7jxMUbM6lmWgftOLJr4NW3KPZsZKYjnPQi6JW7W2rCoW55yuqAmGBhWL bRGGjdnco5RMyzqypwtyV/6m8pKat2Jz+HMYoWsa2+GjOI7kx5He12UprG//2LI5Bcnj OXxBGi+7DU5C4GtGLT2EvhJr/4gHU+o1ChX9X6Ld5MjbDZDZNd0Sz7U+DBohhJn4lPdB zgESmWRDW68tD03rMGosmBxHwe0QOoJZSF6n+4I9d5MNTh6lgTINP06MQfaXO5EnPGRc 5UeQo9VBcZkgplZZ7f74FE+1P62r8eI5bu27dy+93pK9d886swN4BEsKjVkmCKaDKlgr tT4A== X-Gm-Message-State: ABuFfoh3Ueuj4j0VKpZX4Wr3ht4CIgTcTrNtdcEQK+VkIcuIYm9nvrQ8 DdVQeTGi2l/k9QCSDM6ZU8/aK9lcqcysCp7cz2nHVw== X-Received: by 2002:a54:4696:: with SMTP id k22-v6mr11788982oic.99.1539732590509; Tue, 16 Oct 2018 16:29:50 -0700 (PDT) MIME-Version: 1.0 References: <20181016210950.cmx4r4pb2yg5ofpp@smtp.gmail.com> <5717d448daad72d7eb142732ca88e9ed30854088.camel@perches.com> In-Reply-To: From: Giuliano Augusto Faulin Belinassi Date: Tue, 16 Oct 2018 20:29:39 -0300 Message-ID: Subject: Re: [PATCH] staging: iio: ad7280a: Lines should not end with a '(' - style To: joe@perches.com Cc: giuliano.belinassi@gmail.com, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >(There is a linux-usp@googlegroups.com mailing list >that bounces when I reply, so I removed it from the >cc list) Sorry. I think this may be because my HTML mode in gmail was enabled. > I wrote that to encourage you to do more than > what checkpatch says. > I just moved code around and reduced duplication. > There are many similar opportunities for code > refactoring in staging. Thank you :-) I will put effort to improve these points. > You could test what I wrote, add a good commit > message with a subject like: > > [PATCH V2] staging: iio: ad7280a: Refactor > > with a commit message that describes the changes and > perhaps shows the object size difference using > > $ size I will do that. :-) > Are you doing this for a class assignment? Yes, I am. I am into a group that aims to contribute to opensource projects and we chose the Linux kernel. Our mentor suggested us to contribute to the linux-iio Thank you On Tue, Oct 16, 2018 at 8:08 PM Joe Perches wrote: > > (There is a linux-usp@googlegroups.com mailing list > that bounces when I reply, so I removed it from the > cc list) > > On Tue, 2018-10-16 at 19:48 -0300, Giuliano Belinassi wrote: > > Hello, > > Thank you for your review :-). > > Sorry, but I am a newbie on this, and now I am confused about my next > > step. Should I make a v2 based on your changes, or do you want to submit > > your changes? > > I wrote that to encourage you to do more than > what checkpatch says. > > I just moved code around and reduced duplication. > > There are many similar opportunities for code > refactoring in staging. > > You could test what I wrote, add a good commit > message with a subject like: > > [PATCH V2] staging: iio: ad7280a: Refactor > > with a commit message that describes the changes and > perhaps shows the object size difference using > > $ size > > Maybe add a Suggested-by: tag if it pleases you, but > what I did is trivial and I think it's unnecessary. > > Are you doing this for a class assignment? > >