Message ID | 20231030120734.2831419-10-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 cy1csp2158973vqb; Mon, 30 Oct 2023 05:08:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEef1bg8kjgPB91KQmec2RhOMmCP3QhO/0BtqQ13gunQEs65KjRm+61516whhqhK0AiIqa5 X-Received: by 2002:a17:90a:d497:b0:280:18ba:f016 with SMTP id s23-20020a17090ad49700b0028018baf016mr6920558pju.47.1698667709692; Mon, 30 Oct 2023 05:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667709; cv=none; d=google.com; s=arc-20160816; b=Jc1oTRcS8dYlfH4428iXR/0ZBUvAdKdsj8wD112Itdr4CX5VOWeE0i+BhvqWZXKg9I rU0R4re87ryJ5c/9JRAmg2phVMgilZM5cc0k0nZEPA/RZ4W6SSgdCIOJdpQvNklmCsBg ZZQo+FTqA/+nwzn6FrI4K/3/JH2JfWoCE1MftZk0vGCjPHYtBZNV/rhzBBIVzoTsF8jE MQFHJJxjE7sHU2gy2oPOlulL8QpsLZpfLrQg3ZWbwwB/7Zcg5z2XorhKYpbXF4hyvlJG vV7SxAQ2ERvY6gxGVfSDt2n0OnTroSKcDgJ1iytA6uWcKrHmb9B5/hd0mwqZ6cOwydxn FmCg== 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=zQN27jOkaqYRH97Pi+hf2M7Xj7bQYVtPvBrgexy49YM=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=xmmeVncx4lXpPVGkX/Qto3nfjrM/y6m6owl847n+jTAPZFp0Djo3tuQQzDdFdjmoBz IHEdbDNoMxZtXHW37+BZmRsV4SrkghDjaRfdAGEzYS3OGuejcu0XLK/P7nrbhwAzB6au VFdmFzzjpxDJui+zoa+889Ymxa3R1K70PGX17MNdBsl6tBq59nmEA/0+z8h6e5tA6tzp A3uUnT0ByzyvatheZBidu0RlmOxDRSK/vkmJlO60h83E0GcmhgKsvILSL60Tjz5dfZCU i8HW3igbOQnWAOcnuZFfuIia+DOfV4b0ucPSPJRZ6mTAPUDi8/G01GGUN9sM26Ua0QYD QSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="G/UuSu4E"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id i20-20020a17090adc1400b002791b907f0csi2479997pjv.121.2023.10.30.05.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="G/UuSu4E"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 DF66B804C233; Mon, 30 Oct 2023 05:08:26 -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 S233262AbjJ3MIK (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 08:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233209AbjJ3MHr (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 9AE42DE; Mon, 30 Oct 2023 05:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667665; x=1730203665; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qe6fXnQKrw1KWWtEX3k1AiPqV1GN0G9S4XeC/C9AjRw=; b=G/UuSu4EYg5OJ9JnBnrCtMy6dhRxWX7aY/hCIVgeBS4hg+QUL6HghpME wnI4SSehmITsuc5KuHD0STU4n0C4cs+K97V2tYfpBV6z2qX5l0DHdovpx a+0fwPHqduIp4egVzpu5WY7LNZj7vSYoFK3mJBQgU/T7pZOHZ6FgkADe1 /WSoL1yfCS8K+Cl1OmlYtv8XBoGLOuLP/BRHOL8DOwtG93vqQGQ5ZuvRZ nHcbLfJytHwNPS6MdvX4q+8fG5E5eenf8cug3Fhxyogqf1ytipZE3mGev OWqOSPBo+xop06n3sL6qtgFrlYuPQIDU0M9xlrE9vimdVz+v6qavOw7C5 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691300" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691300" 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:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="826036531" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036531" 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 49F82456; 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 09/17] pinctrl: geminilake: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:26 +0200 Message-Id: <20231030120734.2831419-10-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:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781182192416730540 X-GMAIL-MSGID: 1781182192416730540 |
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-geminilake.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-geminilake.c b/drivers/pinctrl/intel/pinctrl-geminilake.c index 9effa06b61e9..6dcf0ac2059f 100644 --- a/drivers/pinctrl/intel/pinctrl-geminilake.c +++ b/drivers/pinctrl/intel/pinctrl-geminilake.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> @@ -447,14 +448,12 @@ static const struct acpi_device_id glk_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, glk_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(glk_pinctrl_pm_ops); - static struct platform_driver glk_pinctrl_driver = { .probe = intel_pinctrl_probe_by_uid, .driver = { .name = "geminilake-pinctrl", .acpi_match_table = glk_pinctrl_acpi_match, - .pm = &glk_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, };