Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6945036imb; Sat, 9 Mar 2019 10:45:25 -0800 (PST) X-Google-Smtp-Source: APXvYqz6fFrVWHPhdw9ahKaRcAS4OLbPVwXlgKBBOvBhEGt3X87O6GBUHgOBHlwgyNBh2ulpl8iR X-Received: by 2002:a63:6bc9:: with SMTP id g192mr22460099pgc.198.1552157125690; Sat, 09 Mar 2019 10:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552157125; cv=none; d=google.com; s=arc-20160816; b=K5hL+lGWh853dUCvFdNK0/CxrqKHvQf7reMM8VsyE4NOC1oS90ixAT2ETU6z1t5wCL 43vmrBaMOkTgm0Eb2KHOjQlGQ8UuVKC9Q1DyRl2lYwixI5+nlJXla8jIx1077qSGbs3Z ITSYOpD/XTLDyKYWIT3xvJFYW9VOYD2V1vyBueIQ7U8YI50iA6HBisV05L4gyD+7+CZD mmtTgQ853KjwNHFPbnKjBP+BBfQLzN1mB41TAXirCexaaBuHevCxW2RonywwO63dsC88 gVKV1I1ZHAKUgaZT8ogy5apF1uSLcCR3FtHjS+Xkq5bVO8VUTFJXE3R8V4tmmc5Gl9mq Tj6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dv3/jlrFfHoe3iPrl+5KP+S28awMlfnVROeN+LHyES0=; b=p3W8B40FHzlh5sjxb37p71wPNob1MXMJv5kwsQNDNXTD4zvyWspPhVK3+b13u6GDmh Zq3nTXFCC7MgOfTvCurTvQKUfA/8cFUFUqNf4TCfW0kMkE7mKW3lLFLXsBoX2ZIFVLWf 4FuLASlnQBg20Rv0LW6cV5t1MTGn7G4/K1UC1nJcpkqaI5KNTn4Ov0YvFYK+owtlmKcl hQwVibelJICeXrxSbVQsB6rnvfPMouLdj2XUZBqcGj9U1ONo5+Li6it9MtBJvg453nZi 8B2AKASNxI+9AZ1iGCOKRTs/kRGogaTrefV7ebvbDppLqsS0hop89toDsmFj76zU2e4L 3LCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R2WZ4kH1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si902271pfn.167.2019.03.09.10.45.10; Sat, 09 Mar 2019 10:45:25 -0800 (PST) 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=@kernel.org header.s=default header.b=R2WZ4kH1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbfCISog (ORCPT + 99 others); Sat, 9 Mar 2019 13:44:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:58262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfCISof (ORCPT ); Sat, 9 Mar 2019 13:44:35 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D67DC20657; Sat, 9 Mar 2019 18:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552157074; bh=nJgnlgcBl3FXXupWdM+ePo4w6VLSfbNnH3M9TbU0X6k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R2WZ4kH1BOAprIbFpORvUU0OWuPl7LcWx4UcGuzvtWpBXFcrCDc09WA1J+hPO+4ls m+D2lDGHFDfhwfW0ffVaMsCZaTx2ErMd/rHirvE3tyPOHAjzE2O2XPB2tW7IFh6lS4 Bqhkd7Cq/96pTX2R0Ho5KjjKtGbh54MvpQdzh97c= Date: Sat, 9 Mar 2019 18:44:29 +0000 From: Jonathan Cameron To: Anderson Reis Cc: Tomasz Duszynski , knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, matt.ranostay@konsulko.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Lucas Oshiro Subject: Re: [PATCH v2 1/4] iio:potentiostat:lmp91000: remove unnecessary parentheses Message-ID: <20190309184429.5af90912@archlinux> In-Reply-To: References: <20190308194655.5983-1-anderson.reis.rosa@usp.com> <20190308194655.5983-2-anderson.reis.rosa@usp.com> <20190308210425.GB32641@arch> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Mar 2019 19:26:16 -0300 Anderson Reis wrote: > Hi, Tomasz > > thanks for the guidance. Applied with the description tweaked. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > > > > On Fri, Mar 8, 2019, 18:04 Tomasz Duszynski wrote: > > > On Fri, Mar 08, 2019 at 04:46:52PM -0300, Anderson Reis wrote: > > > From: Lucas Oshiro > > > > > > Remove unnecessary parentheses on line 116, and solve these > > checkpatch.pl > > > > No need to explicitly point finger at changed lines. This is what > > context lines are for. > > > > > CHECKs: > > > > > > - lmp91000.c:116: CHECK: Unnecessary parentheses around 'state != > > channel' > > > - lmp91000.c:116: CHECK: Unnecessary parentheses around 'channel == > > LMP91000_REG_MODECN_TEMP' > > > > > > Signed-off-by: Lucas Oshiro > > > Signed-off-by: Anderson Reis > > > --- > > > drivers/iio/potentiostat/lmp91000.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/iio/potentiostat/lmp91000.c > > b/drivers/iio/potentiostat/lmp91000.c > > > index 90e895adf997..03d277621861 100644 > > > --- a/drivers/iio/potentiostat/lmp91000.c > > > +++ b/drivers/iio/potentiostat/lmp91000.c > > > @@ -113,7 +113,7 @@ static int lmp91000_read(struct lmp91000_data *data, > > int channel, int *val) > > > return -EINVAL; > > > > > > /* delay till first temperature reading is complete */ > > > - if ((state != channel) && (channel == LMP91000_REG_MODECN_TEMP)) > > > + if (state != channel && channel == LMP91000_REG_MODECN_TEMP) > > > usleep_range(3000, 4000); > > > > > > data->chan_select = channel != LMP91000_REG_MODECN_3LEAD; > > > -- > > > 2.20.1 > > > > >