Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3956067ybv; Mon, 10 Feb 2020 09:29:54 -0800 (PST) X-Google-Smtp-Source: APXvYqy0MQRQWkvU33zbfG7pJPHY3pPO51erPB7mwIXIeS6PeSuSoAjAV+oou7WvO/Of6DOQNfR2 X-Received: by 2002:a05:6808:315:: with SMTP id i21mr72925oie.139.1581355794005; Mon, 10 Feb 2020 09:29:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581355793; cv=none; d=google.com; s=arc-20160816; b=q05EDckx00M7nnhdiIy9yKWJtUlkvWlkXkf55q+XUxo0gb3vcnZBSBYmUGoJXQmAdn 95ZuXulcpeCeeOxurjA2L8uZdSNLo6GW2CptccGeTjsmE39FAASCbbomqK2Vd6dg0sNB h4bfZPrCtmcjepfm/Urdu2CHW2zgJtTTobf9JBtEmZfsygsfPhLN0NfX+URyL5/ZlMmh 8jP8rfQY6OGCXS88PFzYb+qiqHCruVKIkrwtUF/bTbeJE++BVpMNQ532nyyprxgjsGW7 4UlUkGrr5ql1NbLX1ObD7n3zTIBV0+ittgwzC34ZowiIBOZy4gD2kUIzGgO/vgOfHp+c ox4Q== 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:date:subject:cc:to:from; bh=fGwwvEwq0vub4Rdw6MiFyxLlhF49EEQYoWH/xZmGr+U=; b=Txf+t9GijAqfucpJB1XA74i21xWgG8X0ZVyxHVn8IuXqefhaUegW9U+sWtmYG+Rr3/ 66gwRZ2V/j1O4EWDMVS9Q1YqJQMFq01naT/EZB2tY8i0kt1tBLJDzoqsYPJd8U/SprEQ R+gMEhOT4bGS5Kq3aLPLrV6dJ4RDPG7ig4949xnmOUcbF8+z4V65wx0/5LwWXWKUf6Hd yUR4xul5DnOIXcFjAcizjjZaDa5QCI2Yn+A1jjpU2SZeFePxX8UP3B7gWoYJohukhsAE OqKjzdSBudx3csbqUBK8027DowKSQaeR3Dz29eutW+kOdDZ5JxOc0iC9qiiydh8PFBye M2bQ== 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 w2si511746otk.126.2020.02.10.09.29.42; Mon, 10 Feb 2020 09:29:53 -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 S1728100AbgBJR3f (ORCPT + 99 others); Mon, 10 Feb 2020 12:29:35 -0500 Received: from sauhun.de ([88.99.104.3]:44002 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbgBJR3d (ORCPT ); Mon, 10 Feb 2020 12:29:33 -0500 Received: from localhost (p54B33161.dip0.t-ipconnect.de [84.179.49.97]) by pokefinder.org (Postfix) with ESMTPSA id 455982C07F5; Mon, 10 Feb 2020 18:29:31 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Benjamin Tissoires , Phil Reid , Wolfram Sang , Wolfram Sang , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] i2c: rename of_i2c_setup_smbus_alert() to keep in sync Date: Mon, 10 Feb 2020 18:29:26 +0100 Message-Id: <20200210172929.6001-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200210172929.6001-1-wsa+renesas@sang-engineering.com> References: <20200210172929.6001-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The parent function i2c_setup_smbus_alert() has been renamed, so rename this one, too, for consistency. Signed-off-by: Wolfram Sang --- drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-core-smbus.c | 4 ++-- include/linux/i2c-smbus.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index cefad0881942..0ac3d6d8b2e2 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -1329,7 +1329,7 @@ static int i2c_register_adapter(struct i2c_adapter *adap) goto out_list; } - res = of_i2c_setup_smbus_alert(adap); + res = of_i2c_install_smbus_alert(adap); if (res) goto out_reg; diff --git a/drivers/i2c/i2c-core-smbus.c b/drivers/i2c/i2c-core-smbus.c index 06f2e4d78d3c..5ab30d627b4d 100644 --- a/drivers/i2c/i2c-core-smbus.c +++ b/drivers/i2c/i2c-core-smbus.c @@ -698,7 +698,7 @@ struct i2c_client *i2c_install_smbus_alert(struct i2c_adapter *adapter, EXPORT_SYMBOL_GPL(i2c_install_smbus_alert); #if IS_ENABLED(CONFIG_I2C_SMBUS) && IS_ENABLED(CONFIG_OF) -int of_i2c_setup_smbus_alert(struct i2c_adapter *adapter) +int of_i2c_install_smbus_alert(struct i2c_adapter *adapter) { struct i2c_client *client; int irq; @@ -716,5 +716,5 @@ int of_i2c_setup_smbus_alert(struct i2c_adapter *adapter) return 0; } -EXPORT_SYMBOL_GPL(of_i2c_setup_smbus_alert); +EXPORT_SYMBOL_GPL(of_i2c_install_smbus_alert); #endif diff --git a/include/linux/i2c-smbus.h b/include/linux/i2c-smbus.h index 409da1e478d6..aa24a11d1a83 100644 --- a/include/linux/i2c-smbus.h +++ b/include/linux/i2c-smbus.h @@ -36,9 +36,9 @@ struct i2c_client *i2c_install_smbus_alert(struct i2c_adapter *adapter, int i2c_handle_smbus_alert(struct i2c_client *ara); #if IS_ENABLED(CONFIG_I2C_SMBUS) && IS_ENABLED(CONFIG_OF) -int of_i2c_setup_smbus_alert(struct i2c_adapter *adap); +int of_i2c_install_smbus_alert(struct i2c_adapter *adap); #else -static inline int of_i2c_setup_smbus_alert(struct i2c_adapter *adap) +static inline int of_i2c_install_smbus_alert(struct i2c_adapter *adap) { return 0; } -- 2.20.1