From patchwork Mon Oct 30 12:07:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 159715 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2159110vqb; Mon, 30 Oct 2023 05:08:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3fGVWLNh0oE2fulTkWxuRU+Hg9o01AtadfEpFXs7Nc3GpvJ9Kgwu6o4fnsoCSrp81R0l9 X-Received: by 2002:a05:6a21:4843:b0:16b:7fcb:4257 with SMTP id au3-20020a056a21484300b0016b7fcb4257mr7920705pzc.4.1698667720793; Mon, 30 Oct 2023 05:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667720; cv=none; d=google.com; s=arc-20160816; b=FvDupctVhoYDdvI6K3U9R701kTVle3VqIkcL+fo8pMnTk52fW63HnxGm1ZVCjW24xq YgdjEA3wEo2SQmuorwRv74E6SZuNyEo7onifu2Pg5uFEsiUTtA2q3MSzFVEt+7TcvfBS yAu4Sfjecc+DC62DF0nkGTWlQBDCUGrQGLEjnqIAGQXwOwUyqrPA+em9L0ZU4tJkGjlD mKMV/96kqN36ID0yS/BcHLll7cX0YJzIrym8ME+yW/gsBDGLgqz34/WABl0cQExWs40N A3yXEgfJ93y6r098hxF59EvgPKnKeq675BOYK18kNt4i1PFs2gbtHX6I5FzizsmVmFyo 6utw== 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 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s11-20020a056a0008cb00b006c128a8123bsi828725pfu.212.2023.10.30.05.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; 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 2620:137:e000::3:7 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 8C7658030B57; Mon, 30 Oct 2023 05:08:35 -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 S233420AbjJ3MIc (ORCPT + 31 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 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:35 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781182204018778026 X-GMAIL-MSGID: 1781182204018778026 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);