Message ID | 20231030120734.2831419-16-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 cy1csp2159366vqb; Mon, 30 Oct 2023 05:08:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlE2c7zb94hpuRHqwHo6RqHjo3MtBb7c6snPz0ew5mv6I/+OmuqUfX78W1NnKRmduiJ1Zi X-Received: by 2002:a17:902:f54e:b0:1cc:336d:bd1 with SMTP id h14-20020a170902f54e00b001cc336d0bd1mr6780114plf.55.1698667737372; Mon, 30 Oct 2023 05:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667737; cv=none; d=google.com; s=arc-20160816; b=vTpfIp9fSdTjIcsg6wO2pbNnTlHkgN/ISVP4/QRY41lemOkcuLsxPXFur479Xg62SC mhAd0MjA8X/3lBHQUT3WrcUojBjBgZ0EQyQdjqaSzZywlSRI8XEy1vjer+LkzeHR99ZG wyP844n3wFpzPRDCrzPtkqwiypkeyvCuyjiK1V61nudRMmBaa0UOoRhqK4VeDj0Pvl0g ZCnvjb1JnLbwkckWAYO/Hyp6S+qhNf7+0yRHKX6OIioGKgXedcKOIy8L2N5gCjgCAfR3 ROmeY94hKcxUYGJmds6IdkZujN78SpT8qG70P9vfoWeFeMMlWVnxNYdJSCut0vbJg6EV rfdg== 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=Nzgk9oqAJ9Q86tBKFW/ZP3N+76VSTHlbUa0Jy5ORRBY=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=bmLF6c+2TTCCHhyZla3Oi+PK/6+tkFLfEuftIgoleiYG3YQqKggfhYqMczHxYb0aRf 7ZPptAHuztpqbw95bPhPRSPC65KO9CEYmaASkmKqScJc2nkhQa5DnaK5pjH1AdfvG3ON L30Pz8hQ4QDW9/UluGb300dD7KHQpGrCRdjHI4Sl/BNM1r3uYpeVtz3CtNBljtE7LqhR YpqCtBatI6TTP8Ej3Dm+2jCujLimwNAvFVxHBVEE8DwgoOvUeOTa3qc7KCK1NUnoJe+Z 0jotTgtYP2iSWJ3OH2UiZglV3g+iMHPdfPm9zvXURUCSPsx2FdEpxV5x8oqW8vMn3b4x z84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NIfCpT10; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id o5-20020a170902e28500b001c61bd9db5csi4844399plc.317.2023.10.30.05.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NIfCpT10; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 4B570804A234; Mon, 30 Oct 2023 05:08:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233413AbjJ3MIa (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 08:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233285AbjJ3MIA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 08:08:00 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B02E4C6; Mon, 30 Oct 2023 05:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667667; x=1730203667; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ycY3v4mV/M6Ughxu1dnMZI+MOMU09AyF0kMqJ9pNwL0=; b=NIfCpT10/2C91CMX2+B4AB8bTtG+iabD47D3hKXDI0pUYfvUqm47WKkT WEq3+6BL2052E+t1h6adYgJp128vWlkOknVibs/UcfPN0MWzNF4ug7Ud3 JJL/BLtrZADnzzYOLK2d1pnAthSDLLqosyaxzeqInyYTAKiK71599yfus IZyHXPbv6LdoU1kq1n8d1Ibt/ZHknviynSwOhCPh/4mhUny9k0FFmePWh 8rZ1ImJmrTVcp9sgKSmSApnsuVjAjvoAMhZF7euGNDbBKM86L6OtLESkT 67KtuXiuEMLM2YfUGP8SYVwkEZZfdgAn9zLmVHhA7mHa/3/BrG+7VtF3s A==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691339" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691339" 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="826036558" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036558" 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 7D0184B8; 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 15/17] pinctrl: sunrisepoint: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:32 +0200 Message-Id: <20231030120734.2831419-16-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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:08:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781182221481379541 X-GMAIL-MSGID: 1781182221481379541 |
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-sunrisepoint.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c index b7a40ab0bca8..55df9d2cfb1b 100644 --- a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c +++ b/drivers/pinctrl/intel/pinctrl-sunrisepoint.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> @@ -579,14 +580,12 @@ static const struct acpi_device_id spt_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, spt_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(spt_pinctrl_pm_ops); - static struct platform_driver spt_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { .name = "sunrisepoint-pinctrl", .acpi_match_table = spt_pinctrl_acpi_match, - .pm = &spt_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, };