Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2690066rdh; Mon, 30 Oct 2023 05:08:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErkWXs85yrXXmIHP1rDmUMnVPVvMNJ2hgTNQeDl053pktKdjQHCWkGkfCKXejxoufRJlxs X-Received: by 2002:a05:6a20:1589:b0:159:f71f:4083 with SMTP id h9-20020a056a20158900b00159f71f4083mr8909449pzj.6.1698667721780; Mon, 30 Oct 2023 05:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667721; cv=none; d=google.com; s=arc-20160816; b=mSYdqcXFRpZfb82WFYntHF4mR1nuWZUBAul9KMFrH2/rb+WsDxzBdGkhjNnC/JF5T9 CosYYmsNkzPY97hpTSxt7RgrW+NZ2fiARfTh4QFykBE2d9ulAHSLguL2suK5ZGl7Br6G fp0qzZ8NChShsNPDkowaMp/WGk59sp+hq+WULD5172+LJDL1m8Urer6St3U6FQsd8gcF zA6e9XTtYCqJu+A2Mek85eJpJdRNmeh82SVwbk2hNDj4VL3VTK+aq9i0PHvANIzj0v4T RS1WL78cip2M6Lqy/2T2paI9Xf//fWq/g+LKbSdCMRHJp8u+De/Sm0Xbd1bLeSvv2B8E qyJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QQQTjmF0twQ+QMQzBLYEcJIKDlLXZkuapYo4pbVhLPQ=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=rGgX3uaOTNoJ/B70aGNmga1N4ss4ZLgGFVrlhAJd6Ggak2txiI74L8Gv20wCrYAsgu F1J3wYZhd95G8B2IQcZKhQAncUK0+a9VyxuN3A5gSrQh2oCHtxJtMrcubERDvYMKBghp R9V063T/JluT2kdPr/y2b/u/1e8xkVFR7pDjXJEHaBsUa9n2TZmLO0yidGLAgLvK296v rZM0NsRCzA0VvemBFQqSBnyccmu+/MK3F3NnNfGghIdmZx8+BqCKWUWnWsoIRV7rHlGY UqXL0lB7ViiB6JNA6zr41FWEvcWA2cPwFkvskoUhzEG6pPIZ2lqEF9ChwQLymHxoYhrO RzUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZQzHrZsV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w69-20020a638248000000b005b96f683c66si2737299pgd.354.2023.10.30.05.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZQzHrZsV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5EE2C8031B31; Mon, 30 Oct 2023 05:08:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233418AbjJ3MIc (ORCPT + 99 others); Mon, 30 Oct 2023 08:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233300AbjJ3MIB (ORCPT ); Mon, 30 Oct 2023 08:08:01 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92FC9F4; Mon, 30 Oct 2023 05:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667668; x=1730203668; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SuALRcFHet1VQPwinCdbLgm/7exVlSMWjFr50V1Snuk=; b=ZQzHrZsVzik5pj7RW4Al94L1au3HfycFk2ePpMoplRXgVUtLAed3yDxj ynbl2f88zm24rsFDDusC5ET+v4IzWKdqUJm8I43Cyy6HE+IrJnnaLgiH1 wGO5dHtz5/PkvXiYRuSXmap92wzZ3mBm4hsQBwf7kl0/oho8NBYGSvjDL QhqPUDGSKRW1Dc8Ezt+FQa3p7EfEq2kNNvzB3NvC/vz+neRq5IfgHrz4t wUT4HkwtMbV1EWoFf+q7Q9DidAwROtS9pwDi3Sg6q+mSr2n9f5/wiIpBH JYcq2CgylWIKmYEbdRRPtm77ZTfqKA4ohhdrfj/CGCtxp3/vB1+rfUoWs w==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691350" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691350" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 05:07:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="826036562" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036562" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 30 Oct 2023 05:07:43 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 9337551D; Mon, 30 Oct 2023 14:07:36 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij , Paul Cercueil , Jonathan Cameron Subject: [PATCH v3 17/17] pinctrl: intel: Make PM ops functions static Date: Mon, 30 Oct 2023 14:07:34 +0200 Message-Id: <20231030120734.2831419-18-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231030120734.2831419-1-andriy.shevchenko@linux.intel.com> References: <20231030120734.2831419-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:08:36 -0700 (PDT) No more users outside of the main module. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/intel/pinctrl-intel.c | 6 ++---- drivers/pinctrl/intel/pinctrl-intel.h | 9 --------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index 9fbdc7bfa65c..f1d8f7e0d9b7 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -1727,7 +1727,7 @@ static bool intel_pinctrl_should_save(struct intel_pinctrl *pctrl, unsigned int return false; } -int intel_pinctrl_suspend_noirq(struct device *dev) +static int intel_pinctrl_suspend_noirq(struct device *dev) { struct intel_pinctrl *pctrl = dev_get_drvdata(dev); struct intel_community_context *communities; @@ -1770,7 +1770,6 @@ int intel_pinctrl_suspend_noirq(struct device *dev) return 0; } -EXPORT_SYMBOL_GPL(intel_pinctrl_suspend_noirq); static bool intel_gpio_update_reg(void __iomem *reg, u32 mask, u32 value) { @@ -1837,7 +1836,7 @@ static void intel_restore_padcfg(struct intel_pinctrl *pctrl, unsigned int pin, dev_dbg(dev, "restored pin %u padcfg%u %#08x\n", pin, n, readl(padcfg)); } -int intel_pinctrl_resume_noirq(struct device *dev) +static int intel_pinctrl_resume_noirq(struct device *dev) { struct intel_pinctrl *pctrl = dev_get_drvdata(dev); const struct intel_community_context *communities; @@ -1881,7 +1880,6 @@ int intel_pinctrl_resume_noirq(struct device *dev) return 0; } -EXPORT_SYMBOL_GPL(intel_pinctrl_resume_noirq); EXPORT_NS_GPL_DEV_PM_OPS(intel_pinctrl_pm_ops, PINCTRL_INTEL) = { NOIRQ_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend_noirq, intel_pinctrl_resume_noirq) diff --git a/drivers/pinctrl/intel/pinctrl-intel.h b/drivers/pinctrl/intel/pinctrl-intel.h index d3f511f97ed9..e7d911a65584 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.h +++ b/drivers/pinctrl/intel/pinctrl-intel.h @@ -255,15 +255,6 @@ struct intel_pinctrl { int intel_pinctrl_probe_by_hid(struct platform_device *pdev); int intel_pinctrl_probe_by_uid(struct platform_device *pdev); -int intel_pinctrl_suspend_noirq(struct device *dev); -int intel_pinctrl_resume_noirq(struct device *dev); - -#define INTEL_PINCTRL_PM_OPS(_name) \ -const struct dev_pm_ops _name = { \ - SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend_noirq, \ - intel_pinctrl_resume_noirq) \ -} - extern const struct dev_pm_ops intel_pinctrl_pm_ops; struct intel_community *intel_get_community(struct intel_pinctrl *pctrl, unsigned int pin); -- 2.40.0.1.gaa8946217a0b