From patchwork Mon May 30 01:08:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 68821 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1160104qge; Sun, 29 May 2016 18:11:56 -0700 (PDT) X-Received: by 10.66.127.47 with SMTP id nd15mr41871623pab.84.1464570716255; Sun, 29 May 2016 18:11:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf10si46810329pab.204.2016.05.29.18.11.55; Sun, 29 May 2016 18:11: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=fail header.i=@gmail.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 S1161170AbcE3BLt (ORCPT + 30 others); Sun, 29 May 2016 21:11:49 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34981 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753273AbcE3BJQ (ORCPT ); Sun, 29 May 2016 21:09:16 -0400 Received: by mail-pa0-f66.google.com with SMTP id gp3so12876888pac.2; Sun, 29 May 2016 18:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qk/DJhUcxCbtg/LJy3pXOb7OZVTrTyy4F22DwuBgTzQ=; b=UwaabLbtDKOSreTI2aDI33wuMWgLQUeYgo5l4hJtADuybFSltXNVHf+JVDqSz9Epwk ssSlYaR+nLjAX22inK6c2N1kf3zpI4XB6pkblO1z7x28TxsNEl+W5IMFre3ePae4Vwwf tmEHwet19IkbU1k0EhrrimE+e7OELywgXz2Fk1TLPgwqcmcxlzkd4VzJJGCNQKScOiDl BYmEsUSrlrD19BiJxjk512z/mJtaFh5aK5PNQ4J65bPORHSw2+a+wZZBhOVElWOWnIU0 hgQdRpeBQojhrhQO4CoydLyGBYMyE97fwTqun49xrb+demnf068dQ5wHdVPOaj1HFwpA hM3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Qk/DJhUcxCbtg/LJy3pXOb7OZVTrTyy4F22DwuBgTzQ=; b=XDFsK3QOsc6EqWd/JGauFuyHlh2VCIYEz8XeakWhvn9Vv3fMBKDdtVO2rEjeMq+4nM S+6AoMJFaG2/WweDkYzUFuZNJnMqRsjl0gVs7b64EmkYeFyNF23Ffc5wis4zRQ5b1eC+ 9HFVN5bqknGFAD8GjEzHhYwlX7G8qt6jGtoHW2puHTxSYopisE3/X/S6uXRLvj5ZmG5J GFbDBmCBQM0q3V/qL2nuLsm9NbHm9g59s3sqYtEF+11IwkGcbnWiwFN9YXx0RppqIG79 2dIriNbZkwLYU2OXs9nXpFFWJkmawv6+Bmi1ungaUUsl+vnJ+gUYiSQdpL7Ez/iX5uzo 57pA== X-Gm-Message-State: ALyK8tKIbACs430Yg/mmUqpGgNmZoaalBE0St7FR0DcxrNmogLsNFFKVfTbduttJepLMcw== X-Received: by 10.66.122.100 with SMTP id lr4mr40640923pab.99.1464570555425; Sun, 29 May 2016 18:09:15 -0700 (PDT) Received: from serve.minyard.net ([108.19.215.157]) by smtp.gmail.com with ESMTPSA id h6sm42723233paf.23.2016.05.29.18.09.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 May 2016 18:09:14 -0700 (PDT) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 0384CA2; Sun, 29 May 2016 20:09:10 -0500 (CDT) Received: by t430.minyard.net (Postfix, from userid 1000) id 7909C300042; Sun, 29 May 2016 20:09:07 -0500 (CDT) From: minyard@acm.org To: Jean Delvare , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, minyard@acm.org Cc: Corey Minyard Subject: [PATCH v2 01/10] i2c-i801: Remove hwpec from block byte-by-byte function Date: Sun, 29 May 2016 20:08:55 -0500 Message-Id: <1464570544-975-2-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464570544-975-1-git-send-email-minyard@acm.org> References: <1464570544-975-1-git-send-email-minyard@acm.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corey Minyard It's not used in the function, so get rid of it. Signed-off-by: Corey Minyard --- drivers/i2c/busses/i2c-i801.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 64b1208b..818c0c8 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -554,8 +554,7 @@ static irqreturn_t i801_isr(int irq, void *dev_id) */ static int i801_block_transaction_byte_by_byte(struct i801_priv *priv, union i2c_smbus_data *data, - char read_write, int command, - int hwpec) + char read_write, int command) { int i, len; int smbcmd; @@ -698,7 +697,7 @@ static int i801_block_transaction(struct i801_priv *priv, else result = i801_block_transaction_byte_by_byte(priv, data, read_write, - command, hwpec); + command); if (command == I2C_SMBUS_I2C_BLOCK_DATA && read_write == I2C_SMBUS_WRITE) {