From patchwork Thu Jul 12 01:04:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: IKEGAMI Tokunori X-Patchwork-Id: 10520763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4C2F2603D7 for ; Thu, 12 Jul 2018 01:05:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 367362966E for ; Thu, 12 Jul 2018 01:05:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AC9F29858; Thu, 12 Jul 2018 01:05:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D306C2966E for ; Thu, 12 Jul 2018 01:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389098AbeGLBMi (ORCPT ); Wed, 11 Jul 2018 21:12:38 -0400 Received: from mail1.bemta23.messagelabs.com ([67.219.246.215]:51836 "EHLO mail1.bemta23.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387724AbeGLBMi (ORCPT ); Wed, 11 Jul 2018 21:12:38 -0400 Received: from [67.219.246.196] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-3.bemta.az-c.us-east-1.aws.symcld.net id 4E/BC-01625-369A64B5; Thu, 12 Jul 2018 01:05:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeJIrShJLcpLzFFi42KZFv5DRDd5pVu 0wYVrrBbtr7cyOjB6fN4kF8AYxZqZl5RfkcCasarvMHvBAbaKtZdXMTcw3mbtYuTkEBKYyygx 9bFDFyMXkP2LUaL9zHSwBJuAqcT0VwsZQWwRARWJLevWMIMUMQu0Mkr8X7AOLCEs4Crx48sys AYWAVWJdXvegsV5BRwltrTPYAOxJQTkJQ6/aQKr4RRwkjg3YR87xGZHidnnm6Cu0JR43vOdEa I+WOLQzC1sExh5FzAyrGI0TSrKTM8oyU3MzNE1NDDQNTQ00jXVNTLXS6zSTdYrLdZNTSwu0TX USywv1iuuzE3OSdHLSy3ZxAgMFAYg2MH4YVbqIUZJDiYlUV4pK9doIb6k/JTKjMTijPii0pzU 4kOMMhwcShK8nivcooUEi1LTUyvSMnOAIQuTluDgURLhLVgOlOYtLkjMLc5Mh0idYtTl+PN+6 iRmIZa8/LxUKXFeZpAZAiBFGaV5cCNg8XOJUVZKmJcR6CghnoLUotzMElT5V4ziHIxKwrz2IF N4MvNK4Da9AjqCCeiIuBSwI0oSEVJSDYyOLeuDfQ7HTEhQu5/4lKvlIfdsiw8OsxTifil8F7N 7subyxxUrymQFttVnqrR+XBQwp9fkmsx334Mr5iedfbzgP2dXJOeFL8HFS0Q/r0kteF/i8n7+ QRcRn9KrKuJHtvCwRNb6TrjIxKVlZ/zwu8niPyofrGdaWV09Udcx1WBD+Ua1Mou5NjZKLMUZi YZazEXFiQB24UqzmgIAAA== X-Env-Sender: ikegami@allied-telesis.co.jp X-Msg-Ref: server-29.tower-404.messagelabs.com!1531357538!879750!1 X-Originating-IP: [150.87.248.20] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7479 invoked from network); 12 Jul 2018 01:05:38 -0000 Received: from abricot-inet.allied-telesis.co.jp (HELO TKY-DS01.at.lc) (150.87.248.20) by server-29.tower-404.messagelabs.com with SMTP; 12 Jul 2018 01:05:38 -0000 Received: from swim-manx.rd.allied-telesis.co.jp ([150.87.21.50]) by TKY-DS01.at.lc with Microsoft SMTPSVC(8.0.9200.16384); Thu, 12 Jul 2018 10:05:37 +0900 Received: from ikegami-pc.rd.allied-telesis.co.jp by swim-manx.rd.allied-telesis.co.jp (AlliedTelesis SMTPRS 1.3 pl 1 ++E6B86F8C687C6288D9B5559052954DC9) with ESMTP id ; Thu, 12 Jul 2018 10:05:37 +0900 From: Tokunori Ikegami To: Jean Delvare Cc: Tokunori Ikegami , Chris Packham , linux-hwmon@vger.kernel.org Subject: [PATCH 3/5] hwmon: adt7475: Change to use adt7475_read macro Date: Thu, 12 Jul 2018 10:04:48 +0900 Message-Id: <20180712010450.10586-4-ikegami@allied-telesis.co.jp> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180712010450.10586-1-ikegami@allied-telesis.co.jp> References: <20180712010450.10586-1-ikegami@allied-telesis.co.jp> X-OriginalArrivalTime: 12 Jul 2018 01:05:37.0839 (UTC) FILETIME=[71EA0BF0:01D4197C] Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It shoudl be same as with other functions to use adt7475_read. So change to use it instead of i2c_smbus_read_byte_data. Signed-off-by: Tokunori Ikegami Cc: Chris Packham Cc: linux-hwmon@vger.kernel.org --- drivers/hwmon/adt7475.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c index a40eb62ee6b1..bad250729e99 100644 --- a/drivers/hwmon/adt7475.c +++ b/drivers/hwmon/adt7475.c @@ -1012,7 +1012,7 @@ static ssize_t pwm_use_point2_pwm_at_crit_store(struct device *dev, return -EINVAL; mutex_lock(&data->lock); - data->config4 = i2c_smbus_read_byte_data(client, REG_CONFIG4); + data->config4 = adt7475_read(REG_CONFIG4); if (val) data->config4 |= CONFIG4_MAXDUTY; else