Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1155781pxu; Fri, 27 Nov 2020 00:41:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUtDhTk2fOkOYAz8HJUed6P2XMTYY0b1HdM/jOpD1IxSrBSA/GaAo7x81znsDsv0annMsX X-Received: by 2002:a17:906:7d1:: with SMTP id m17mr6395934ejc.98.1606466485709; Fri, 27 Nov 2020 00:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466485; cv=none; d=google.com; s=arc-20160816; b=n7UB+ZMPCu0DUFj0BdVBRy08a0j8x1/QfMv9yORtwoZ8PXm+iPzj93jFeuk7px+zsN /DQj+pvDtuSZt9JLLs4HOf4kJdd+3hp/FnRHNbmqR4kcbkHcf4mU+DUGveJLPov5hyIZ R7FI8sky3Dm3UVe/ptr056frM38ZCeWrSyBIY9uU3Q6Fzf/Lgc+IsAwEw3E5AnbbyU4j jMDcRe7kjgzVq4rXotSHbhOUTVvyxAwECwAQ2fEe9GTAQUPyOFtk0O1v0/96ahIdbS1l 8B/EsCZG80rjrRRxs4BZIM6LaksomrZLFxayaNtn+D5EWzSoHqCCnaQRrWOxfP5yZaAg Au3w== 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=VNS3AdnZyAljz4UzU1eEGAr9ZQathKcoVlyrQbvlT2I=; b=Myw9sF9Cmu7jlGfknIMBDQD9LKlC2ZGYbFW71gWvRjZWFM7SmiJ7ZB97M0JBKObhAa tPK7t3HogEc3IWx70O1JgsutlazbcLXWhhMwcozy3+I9UJB403SesAIfTDUWAo1lOt1i vESXpN9/PwxEBoCUPc/kf2QmbmZplwBCsViS55uZ0C0YoP9L26a8F5ttnT22rZxLXwPd ZqLPiz6OE8xOV2NXGdLEDtPkNfnSo2bDGxCMl33TWcFzE5AGEokBXgttbF6xG0uGuI27 91I8qweg/E0l+uufJqNTnyfCx0HHyzFdA4U3T97y/WHsSvUSQcdE1/XWOvF7mv/bqpS2 JTLg== 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 f15si4573005edc.153.2020.11.27.00.41.03; Fri, 27 Nov 2020 00:41:25 -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 S2405235AbgKZTMF (ORCPT + 99 others); Thu, 26 Nov 2020 14:12:05 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:49537 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405176AbgKZTME (ORCPT ); Thu, 26 Nov 2020 14:12:04 -0500 X-IronPort-AV: E=Sophos;i="5.78,372,1599490800"; d="scan'208";a="64008847" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 27 Nov 2020 04:12:04 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id DCC0040F8D53; Fri, 27 Nov 2020 04:12:01 +0900 (JST) From: Lad Prabhakar To: Sergei Shtylyov , Krzysztof Kozlowski , Philipp Zabel , Jiri Kosina , Mark Brown , linux-renesas-soc@vger.kernel.org, Pavel Machek , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH v2 4/5] memory: renesas-rpc-if: Make rpcif_enable/disable_rpm() as static inline Date: Thu, 26 Nov 2020 19:11:45 +0000 Message-Id: <20201126191146.8753-5-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126191146.8753-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20201126191146.8753-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 them. 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 da0fdb4c7595..8d36e221def1 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_disable(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..14cfd036268a 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_disable(rpc->dev); +} + #endif // __RENESAS_RPC_IF_H -- 2.25.1