Message ID | 20231030120734.2831419-5-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 cy1csp2158717vqb; Mon, 30 Oct 2023 05:08:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2btfIYQ02+80FcqbIaUfX8EQ6TbxqvjaTIfY8HgcMYRvWGiWxkSTdOfQQGeWFM2X54MfK X-Received: by 2002:a17:903:430f:b0:1cc:348a:a81d with SMTP id jz15-20020a170903430f00b001cc348aa81dmr3080452plb.31.1698667687999; Mon, 30 Oct 2023 05:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667687; cv=none; d=google.com; s=arc-20160816; b=SzP5OiN8u19y0FzsnlJb/ztMCekbKMjPzv2WJeGpGwp0LrzG6mT9F8ibmRCKI0qhWw a60k3GSJ9E2wm1z9u8U9KHs3Tm0FFT8lPR4ydAP0vSiDJkodygPzD8cXyFS4tECiwc3j 2YEmANVK6nk3TU5i5mhx84H/ouEKpEWRKdJb6ud1sBC+vTK8lV8UYtoCbj0cZ+Ei+t7S T3zCwIuPeee6IMjGLXcaJGy5C3HWLCoouQgIJulcEr+hwthFmkEAuwLJZa8cOYvCy9A6 qS2o+AUAVnnxUVnZB8mID0Tg2u87NXRNn2jQKMksdE336ihmHNS4y5XAyAOHs+RvTKMZ V3Ww== 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=syXDWivMOEuoxacsQypPEGxSX/Owt0ZSuh/b+ukBRMc=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=izSoXzp2E0aHggQGqhA2+X6ld9PFterGDIC/jFiS/8f6tv4UuRHM6uJCSEMcc72Zd7 NhVHPz36LzBPjVsfSkuLeUMeD8O8V0sCHCvyygnmRv3EUrUWHOiik60+KRVgnSKT0EiL 91PuOEqTcpZOvO0rXmsjd6+OY/fF2onaPjhyhitIl7lRCPJm83yAECKjJx1DNf8FCdie APIm/CC24B5V54tXfEiKZgStQVBO6Xa9HFSMlqXV0afeREWFNOABq+JjxWa1+eVRAaay iWVZrK44m4dVGxy0Mdrhi9ca0SM5a6h4L3iS/+2pUHPCc2xEUzpXaqS9zk5KimUIDjbL aJKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FfION09r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id kv5-20020a17090328c500b001cc45f1add8si1830855plb.499.2023.10.30.05.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FfION09r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 801DC80ACC75; Mon, 30 Oct 2023 05:07:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233174AbjJ3MHp (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 08:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233095AbjJ3MHn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 08:07:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09180D9; Mon, 30 Oct 2023 05:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667661; x=1730203661; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U+g4ToP0pep4SX+58VPf0Rx444C8v8gPvauRNNI21ak=; b=FfION09rQ9/2tS5Au0g3iBDNVo6CAqyhaDjVKJMbnCinufzyFiwCc4n/ Vafi1479poX1BWBc34T9GH6ewgpCwNS1LjX+BHX6U5pn9sOKkJG6pxZIR AD7m6cQaL1Q93f7Dx+zbeBCNAM3dmKYDaymQ+JWp34F1JPjKVCNSJjT3y QH67DIsONfaQgmO9ajlUDof1NXGGm9iyAhr8VOQGNscGlKbQQnTjV/zy5 BAi4zOoEplexxTv3kt1DNMRj2Vsv7aDlzCh196+9dd4gvtIZgtKVZPr24 iaxyUCyD+Diw8+YnwgfPPZ2X6ey6WEy7PCrRGHKo2CDTpq+bHZdgH7xbt w==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="373107324" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="373107324" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 05:07:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="753771398" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="753771398" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga007.jf.intel.com with ESMTP; 30 Oct 2023 05:07:37 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 10F26350; 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 04/17] pinctrl: cannonlake: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:21 +0200 Message-Id: <20231030120734.2831419-5-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:07:57 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781182169981475094 X-GMAIL-MSGID: 1781182169981475094 |
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-cannonlake.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-cannonlake.c b/drivers/pinctrl/intel/pinctrl-cannonlake.c index 95976abfb785..1aa09f950be1 100644 --- a/drivers/pinctrl/intel/pinctrl-cannonlake.c +++ b/drivers/pinctrl/intel/pinctrl-cannonlake.c @@ -10,6 +10,7 @@ #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/pm.h> #include <linux/pinctrl/pinctrl.h> @@ -824,14 +825,12 @@ static const struct acpi_device_id cnl_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, cnl_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(cnl_pinctrl_pm_ops); - static struct platform_driver cnl_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { .name = "cannonlake-pinctrl", .acpi_match_table = cnl_pinctrl_acpi_match, - .pm = &cnl_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(cnl_pinctrl_driver);