Message ID | 20231030120734.2831419-14-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2159254vqb; Mon, 30 Oct 2023 05:08:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/VAB7VqgW9PuwI/kgcRb0FK1mdaL1zPElUcmqiN5v4WBtfrhr8EOilKURfyCRxPvXD3qx X-Received: by 2002:a92:c950:0:b0:359:2dc2:ea97 with SMTP id i16-20020a92c950000000b003592dc2ea97mr165610ilq.21.1698667731032; Mon, 30 Oct 2023 05:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667731; cv=none; d=google.com; s=arc-20160816; b=dQ8gYAlQC8rkeSU+YOr6eZ7rpnJlafEiKR3i0sAiE3WHv6HrYQzQpjg7ghATet22Z8 wFh0lFMQCypayBpPJgk7NyKgsICQ/5/lX9TBLdIMIDSG/RuI8TcclU83wJDYAVlsQ4jo BSP+Ufv6oJh1XDgKNDIEqpKUryUD7Ye4Pjf6VMk/HS7f524/VfiSmf/Se7AopUWpom1Q FyTcYWjMXny3HIrO/qG68vKDRRxCg2gbDZMmIl2UZcommz0hRCznFzowsuFAcTaMMID5 qkFL7TNS3oZIdC1S1BfOkcEUjBo1dEF3ya/740hbt1FfwL7QY1JM1rUA8SH75egvVSk4 Vj0w== 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=fMfZR1nNl6zplPylsklygvgH7cxMYT21KwkYrKm28bw=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=e8NGFV9yPuCoKCXJdKUHwQ735u8h4xz8HS6rKz3h8LgQeVm/KLc60NvvjX2PBrwoXQ swEDh3EZ9AcfBR8BDCJ1E9vdMjBvotMsU10N3nYWaR2SUsiFBAPCwADhBo0PsBRvcAxW gBTuF0vqd2+EaR1Pnxjb4M6CFTqWCwCbMVeQHyt5M87gMnRBhKe10RuqD6TKe1JQxPyj YE091Dt6C9qhqT2RC+XQ3QHFq9+dJFUvzvP0v2nQmlTzHhg1SxE/tNCT0zXqDdV/Au5r LXjpkzHNrU5pcRDwtHsKRiiXio/KB2nxZQOILcjWLVZvU0a6p2foHdeXqp34jtuW/fhy q7tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aCSMskHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s24-20020a656918000000b00578d0b680a8si4734560pgq.824.2023.10.30.05.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aCSMskHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 7855980AD121; Mon, 30 Oct 2023 05:08:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233391AbjJ3MIU (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 08:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233224AbjJ3MHr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 08:07:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FCD8E9; Mon, 30 Oct 2023 05:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667666; x=1730203666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+S7wel8AALKq2+6uysyF1Wgw77L8D37D7NPLQyJaAcc=; b=aCSMskHaqkvN+rJyUWJPxWboIAKh2LtTmfNxshWLZsZB8Tce7wKzEKll L8pJ38mCFPkU/rluxAwPXNI86+dO52zGNsSpBVRvwWTNDRy3uAN9rXnx4 PqIK9D7u/TmGeKiB1EcoZmA3anash4Uch8MCYKM/wEu5P+y95Tf+l1Zmp ccn7uh2HbTgsYJaYS/bdVUSnDnZmlhqEy0jHotqhjKZU5JnUHLrOY0t6T U6ON/xnMb8sSZZNpsH98+OsrM3G6P11mllnXoH7CDKn+r6xGiTSYjuA/O UHC9qF4MrgDpZvyN3+ohvagqqhauNOFd8Ob6IVE79L+9u1Kx8n1piLMUk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691313" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691313" 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:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="826036534" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036534" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 30 Oct 2023 05:07:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6E61249C; Mon, 30 Oct 2023 14:07:36 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Mika Westerberg <mika.westerberg@linux.intel.com>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko <andy@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Paul Cercueil <paul@crapouillou.net>, Jonathan Cameron <Jonathan.Cameron@Huawei.com> Subject: [PATCH v3 13/17] pinctrl: lewisburg: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:30 +0200 Message-Id: <20231030120734.2831419-14-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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:08:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781182214644653778 X-GMAIL-MSGID: 1781182214644653778 |
Series |
pinctrl: intel: Use NOIRQ PM helper
|
|
Commit Message
Andy Shevchenko
Oct. 30, 2023, 12:07 p.m. UTC
The main driver conditionally exports the PM ops structure.
Switch this driver to use it instead of customly wrapped one.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-lewisburg.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-lewisburg.c b/drivers/pinctrl/intel/pinctrl-lewisburg.c index aa725a5d62b9..a304d30ea9ed 100644 --- a/drivers/pinctrl/intel/pinctrl-lewisburg.c +++ b/drivers/pinctrl/intel/pinctrl-lewisburg.c @@ -9,6 +9,7 @@ #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/pm.h> #include <linux/pinctrl/pinctrl.h> @@ -301,8 +302,6 @@ static const struct intel_pinctrl_soc_data lbg_soc_data = { .ncommunities = ARRAY_SIZE(lbg_communities), }; -static INTEL_PINCTRL_PM_OPS(lbg_pinctrl_pm_ops); - static const struct acpi_device_id lbg_pinctrl_acpi_match[] = { { "INT3536", (kernel_ulong_t)&lbg_soc_data }, { } @@ -314,7 +313,7 @@ static struct platform_driver lbg_pinctrl_driver = { .driver = { .name = "lewisburg-pinctrl", .acpi_match_table = lbg_pinctrl_acpi_match, - .pm = &lbg_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(lbg_pinctrl_driver);