Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1559723pxu; Tue, 24 Nov 2020 03:29:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX3PFWQ3Z2p4/ESWyHquoJpXvaUzP03gBA4928381Fvp3Q9AoLal7eCuZnpUjobWxlI2+2 X-Received: by 2002:a17:906:2a0a:: with SMTP id j10mr3626438eje.307.1606217341926; Tue, 24 Nov 2020 03:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606217341; cv=none; d=google.com; s=arc-20160816; b=yhkErb7AIAmIlGHV1Zrm13DhHL34cJAa3gwb2uu8IqGC+sSezxgajyFPULOrxATIFw jzMi3JCcOETAr0z47LCWaOA0EBIzxD4fYrSx/QDlH19rssJMZKahsTRBYTnR2R0crGSM sOBrt6NAme3qXTpJTZ6bT/CLFpLxiyDaphYnTh6q6+anECqIdXw4oH8H+KhTxqdHi+IW 0mvwBDTIVcepAimPpJq7JnVpvgRvq0on2jaMboRA9XCI1wIxg1XLMiqbyI0/lNm80ZNO ee75lMt1DPmhZBAWC35H8bwFHBQizV+zlycgYLZ6LKOug7+jcwVcvD19nHlwgIPgg3TA L7Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=j4z1HzWcKZAsC+M4LdH8k8CqXIgbJbN6YR1CjtpSLwA=; b=ce+KJTdQ4aulY2y5ttnTfy99uQ9yRCs9GOOaY7cT5dI8X0LqwyK9PMnCElYRrduQH7 faSmnpIM+JPfI6O9uPddmHUYWk6IasXkCpTCEZTU8oZVSgLcA0N8m2Dymjrw0u3TfJ8v qKSfA8Mg4GgGkWLVfyqNrMyjZkLI1ylffHv9N1cyMv4XbPXVJmKelWvR20eHT6x1v49W azGegb8ehU5xuaRGxrY7p/qNPlRVbMBZiJ+uFYzDYkUmhsKZeoodyQO0dH0kmTk+xsBX WZPfTYY7ng9O2mJQmVcS2J8YjA4dfLSijw/h3+WZDVuhKx6zISVKRn77djguWh2HnmGh QNDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si8351373edv.480.2020.11.24.03.28.39; Tue, 24 Nov 2020 03:29:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732724AbgKXL0M (ORCPT + 99 others); Tue, 24 Nov 2020 06:26:12 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:44147 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732658AbgKXL0L (ORCPT ); Tue, 24 Nov 2020 06:26:11 -0500 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63718445" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 24 Nov 2020 20:26:11 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 08B454362275; Tue, 24 Nov 2020 20:26:08 +0900 (JST) From: Lad Prabhakar To: Sergei Shtylyov , Krzysztof Kozlowski , Philipp Zabel , Jiri Kosina , Mark Brown Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das , Prabhakar , Lad Prabhakar Subject: [PATCH 2/5] memory: renesas-rpc-if: Make rpcif_enable/disable_rpm() as static inline Date: Tue, 24 Nov 2020 11:25:49 +0000 Message-Id: <20201124112552.26377-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201124112552.26377-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20201124112552.26377-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define rpcif_enable_rpm() and rpcif_disable_rpm() as static inline in the header instead of exporting it. Suggested-by: Pavel Machek Signed-off-by: Lad Prabhakar --- drivers/memory/renesas-rpc-if.c | 13 ------------- include/memory/renesas-rpc-if.h | 13 +++++++++++-- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c index 69f2e2b4cd50..c5b5691503d7 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include @@ -204,18 +203,6 @@ int rpcif_sw_init(struct rpcif *rpc, struct device *dev) } EXPORT_SYMBOL(rpcif_sw_init); -void rpcif_enable_rpm(struct rpcif *rpc) -{ - pm_runtime_enable(rpc->dev); -} -EXPORT_SYMBOL(rpcif_enable_rpm); - -void rpcif_disable_rpm(struct rpcif *rpc) -{ - pm_runtime_put_sync(rpc->dev); -} -EXPORT_SYMBOL(rpcif_disable_rpm); - void rpcif_hw_init(struct rpcif *rpc, bool hyperflash) { u32 dummy; diff --git a/include/memory/renesas-rpc-if.h b/include/memory/renesas-rpc-if.h index 9ad136682c47..b8c7cc63065f 100644 --- a/include/memory/renesas-rpc-if.h +++ b/include/memory/renesas-rpc-if.h @@ -10,6 +10,7 @@ #ifndef __RENESAS_RPC_IF_H #define __RENESAS_RPC_IF_H +#include #include enum rpcif_data_dir { @@ -77,11 +78,19 @@ struct rpcif { int rpcif_sw_init(struct rpcif *rpc, struct device *dev); void rpcif_hw_init(struct rpcif *rpc, bool hyperflash); -void rpcif_enable_rpm(struct rpcif *rpc); -void rpcif_disable_rpm(struct rpcif *rpc); void rpcif_prepare(struct rpcif *rpc, const struct rpcif_op *op, u64 *offs, size_t *len); int rpcif_manual_xfer(struct rpcif *rpc); ssize_t rpcif_dirmap_read(struct rpcif *rpc, u64 offs, size_t len, void *buf); +static inline void rpcif_enable_rpm(struct rpcif *rpc) +{ + pm_runtime_enable(rpc->dev); +} + +static inline void rpcif_disable_rpm(struct rpcif *rpc) +{ + pm_runtime_put_sync(rpc->dev); +} + #endif // __RENESAS_RPC_IF_H -- 2.17.1