Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6829404ybf; Fri, 6 Mar 2020 05:24:14 -0800 (PST) X-Google-Smtp-Source: ADFU+vuVIZAu6uErr2JIsjPWPcGmgywS0PfQSp2J/8ZALM0M3N74eLqFmTvEyyxXLLpDruJ70USz X-Received: by 2002:a05:6830:1081:: with SMTP id y1mr2394818oto.367.1583501054399; Fri, 06 Mar 2020 05:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501054; cv=none; d=google.com; s=arc-20160816; b=Lktmx7ZC5nyNQLxv34YTY+naSy0ZGll9Jcsnd3G0dm8hQ8gGNISnFSLPcC9ONbhmsr 1fsWnAIl3Br7fK1abOYWwPH2KL6ARVRUICbYZ8Nng78YUCNcnupW3TOZJItalZMkFqUe t4kM+lf1wcd6C17nFFHOK1pwiQcH5IwFjX3LDL0T1Tt+vznQtPhHDt1Z3UfByMt9iduh QC9bbngf3nuHeV13S7MDdPY9WNgatLjUM7YtKil/17yBmSB02GhuWj/52G44odwMLl2A tN3LH8yoMkCH2mpvT74a2H56hR9u4KHVkcjefEoavNYQR1+yKQsbQOPsIgg8dUBCQZ2T pz2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=5imvGTMyIKQNc3obsUnrKrw6dyRGvSuNaiKk+6KY6G4=; b=wSRqvoQW/1pRW6HSVlP751qvDEKe4IFvJIpV0mMCVRikh21YoZk8eKW0hBfEI1gfaQ gAtVIou6cbE7+SciISUlBqZwJkRDeytAKufp2kMsfqftS1LVjl/775I5wZuWMHoct+wr dWMtY5k5HIvf6qRobqmG4RGFVFO6A7fwrmMluDDFAS25ljyLi9f/BgNiQ9/IIh0MfYnu Y7aGxgMuWNTmge2rShzrCW4bVUuDET07A0B5ZtonSnVBfWjfOTo+Q37NL9gpcKjKmZq3 vIwqhMUR1gqkA5RWsOd206EdcZ+V2w1C73fV16CW98EyiqVBTA+I6Ne7b75L7eQQLx0z G7ng== 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 n16si1309582otq.67.2020.03.06.05.24.02; Fri, 06 Mar 2020 05:24:14 -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; 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 S1726859AbgCFNX3 (ORCPT + 99 others); Fri, 6 Mar 2020 08:23:29 -0500 Received: from mail.baikalelectronics.com ([87.245.175.226]:36790 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgCFNX3 (ORCPT ); Fri, 6 Mar 2020 08:23:29 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 74A92803078F; Fri, 6 Mar 2020 13:23:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8uvRExshPHNn; Fri, 6 Mar 2020 16:23:25 +0300 (MSK) From: To: Jarkko Nikula , Andy Shevchenko , Mika Westerberg CC: Serge Semin , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , , Subject: [PATCH 5/6] i2c: designware: Discard i2c_dw_read_comp_param() function Date: Fri, 6 Mar 2020 16:19:56 +0300 In-Reply-To: <20200306131955.12806-1-Sergey.Semin@baikalelectronics.ru> References: <20200306131955.12806-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Message-Id: <20200306132326.74A92803078F@mail.baikalelectronics.ru> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Serge Semin There is no code left in the kernel which would be using the function. So just remove it. Signed-off-by: Serge Semin Signed-off-by: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle Cc: linux-i2c@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/i2c/busses/i2c-designware-common.c | 6 ------ drivers/i2c/busses/i2c-designware-core.h | 1 - 2 files changed, 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busses/i2c-designware-common.c index 4291ff6246d8..72e93c1aa9bc 100644 --- a/drivers/i2c/busses/i2c-designware-common.c +++ b/drivers/i2c/busses/i2c-designware-common.c @@ -388,11 +388,5 @@ void i2c_dw_disable_int(struct dw_i2c_dev *dev) dw_writel(dev, 0, DW_IC_INTR_MASK); } -u32 i2c_dw_read_comp_param(struct dw_i2c_dev *dev) -{ - return dw_readl(dev, DW_IC_COMP_PARAM_1); -} -EXPORT_SYMBOL_GPL(i2c_dw_read_comp_param); - MODULE_DESCRIPTION("Synopsys DesignWare I2C bus adapter core"); MODULE_LICENSE("GPL"); diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h index 3fbc9f22fcf1..b220ad64c38d 100644 --- a/drivers/i2c/busses/i2c-designware-core.h +++ b/drivers/i2c/busses/i2c-designware-core.h @@ -314,7 +314,6 @@ static inline void __i2c_dw_disable_nowait(struct dw_i2c_dev *dev) void __i2c_dw_disable(struct dw_i2c_dev *dev); -extern u32 i2c_dw_read_comp_param(struct dw_i2c_dev *dev); extern int i2c_dw_probe(struct dw_i2c_dev *dev); #if IS_ENABLED(CONFIG_I2C_DESIGNWARE_SLAVE) extern int i2c_dw_probe_slave(struct dw_i2c_dev *dev); -- 2.25.1