Received: by 10.213.65.68 with SMTP id h4csp327279imn; Fri, 23 Mar 2018 05:38:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELsm5X6UB9vRxbYrwdjB3Bj1p0fYBTussABrBwxzkA0AQSyQsoHrUaWNus4SwdJM1ZJ7Aocd X-Received: by 2002:a17:902:b101:: with SMTP id q1-v6mr29420398plr.287.1521808701410; Fri, 23 Mar 2018 05:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521808701; cv=none; d=google.com; s=arc-20160816; b=Fc/Q96m9xpTsKJgPY9Av91woEWk4pmvzvzkq35M6lvhjpIGuoMnaxuR2sCGX2p5uwN W4Hn1ZZmaNRDoOPu8J7RzRe1KIGQeEePHbxpjSWQeOrM2k7LWdfPPkIJ0sQ4hUSX+Wef 4w9HAVMZEneB0Y+E9szTCYdomYvbLBzOcAwXPsbMR0QPpfnclt24ca3d6ErCiKD2NNyl +wMJG6y7h24vwi4ccHwgSfnEAUmOAutxF0Q2z7XvmnUW6ysppaTLX6yRwh3Gkr5vDz3X vFu98lH1y/xyeCcsouPiJTfcLTiBeLHkm/LmW4zElRo9xeGLZ4byIfi6rlwF4h0QzHdt ypew== 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 :arc-authentication-results; bh=Uo0UvPI24tcLtr0nwe/09rC579blrLVfgLgSTJFJFsk=; b=WSlKXHIx2nSfbVz0mWZ7xkDK/ES3P64Vad+wTFf2IbmbXC1hy36y+jSjmRpNM8i8hb yrXMnMCTFkqlYmJ6lnTUT4mIck+8xJ4VSk5kobzDFTO5wO3M5u2ns9LdBP0Kug+7efe2 7tccJOxRnqqNvQf0W4G3f6YyAmiGqaeQwC2619ui39Kdl7V+R1pe029m0aQ+Xz5HeSWD Xt2ov9glDTnnluZ+GeKE18JJtnuJOOc5D2ynexfYC7P9Wa54sic5yP/0LoFX4R+SFeax 0dD2h/xEZEOrHxbD2tPw9MPnl6GI5uKdzJj9r5gxVyZZDU441MJKtELy246PvoNYjAsh LMhw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y72-v6si8914988plh.72.2018.03.23.05.38.06; Fri, 23 Mar 2018 05:38:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752378AbeCWMhN convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Mar 2018 08:37:13 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:34206 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752003AbeCWMhM (ORCPT ); Fri, 23 Mar 2018 08:37:12 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D510E7D99501F; Fri, 23 Mar 2018 20:37:07 +0800 (CST) Received: from localhost (10.202.226.45) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 23 Mar 2018 20:37:06 +0800 Date: Fri, 23 Mar 2018 12:36:58 +0000 From: Jonathan Cameron To: =?ISO-8859-1?Q?Hern=E1n?= Gonzalez CC: , , , , , , Subject: Re: [PATCH 01/11] staging: iio: ad7746: Adjust arguments to match open parenthesis Message-ID: <20180323133658.00004d4d@huawei.com> In-Reply-To: <1521642539-4845-2-git-send-email-hernan@vanguardiasur.com.ar> References: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> <1521642539-4845-2-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.202.226.45] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Mar 2018 11:28:49 -0300 Hern?n Gonzalez wrote: > Clear two more checkpatch.pl CHECKS. > > Signed-off-by: Hern?n Gonzalez Hi Hern?n, Technically the comment below isn't about this patch, but there seems little point in fixing alignment when the function called should be changed anyway (requiring the alignment to change again!) Otherwise patch looks good. Thanks, Jonathan > --- > drivers/staging/iio/cdc/ad7746.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c > index 4882dbc..02e3164 100644 > --- a/drivers/staging/iio/cdc/ad7746.c > +++ b/drivers/staging/iio/cdc/ad7746.c > @@ -463,7 +463,8 @@ static int ad7746_write_raw(struct iio_dev *indio_dev, > goto out; > } > ret = i2c_smbus_write_word_data(chip->client, > - AD7746_REG_CAP_OFFH, swab16(val)); > + AD7746_REG_CAP_OFFH, > + swab16(val)); Take a look at i2c_smbus_write_word_swapped. I thought we had long ago gotten rid of all the places this was being done by hand, but apparently not! > if (ret < 0) > goto out; > > @@ -556,7 +557,8 @@ static int ad7746_read_raw(struct iio_dev *indio_dev, > /* Now read the actual register */ > > ret = i2c_smbus_read_i2c_block_data(chip->client, > - chan->address >> 8, 3, &chip->data.d8[1]); > + chan->address >> 8, 3, > + &chip->data.d8[1]); > > if (ret < 0) > goto out;