Message ID | 20231030120734.2831419-17-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 cy1csp2159496vqb; Mon, 30 Oct 2023 05:09:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuo7I4tnQXjmN5wQtChF+OZk/4OLCW9+/lNdy8jB7pT0ybfBF8tuO1Kd7qTnz+7PRd2C84 X-Received: by 2002:a92:c566:0:b0:357:a71f:8310 with SMTP id b6-20020a92c566000000b00357a71f8310mr14026488ilj.10.1698667750856; Mon, 30 Oct 2023 05:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667750; cv=none; d=google.com; s=arc-20160816; b=n55iBtz63afNqwxKrQMLCxqY/XTsHKWzrQkzH1Kj50Q3aIbmK/3+5v3Hsho/ejFj4e I3pTjbVd+0PTIdCPatz/gGxp6GAgSRwwF2gNdEYuDIJvWgBXOsAiMZPxq03CNl/CVQFy c6aeVLv79awQOiLo+beM8T2+i1JUg3JmqsXQApXEq045J53vbrwnGGdTMf88VTUVxNjV Am6l1//gU+y0C7SxFt4VfyDzuOg8Ssa6V/K9MqQOCX8XC2I0fKR+8/xVK1sQkkEdRxkz UYelw+sTKwT6dPFLDsmA+Gug23ErWJaXZgtsO/mfNqTNCTmsZ8IC6u9Ky8GA/DOuLU4S XLIw== 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=Np4riYnK/wGNO2bv81corIwhKHOvKOnUHA7EtWyuzHU=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=RtJ9gIc45S5eYwmvSDFZJMBkiBDxGk6oZ/TMcB/Bmcn03wDvxcGv59H4gEi0ZcUsLy teNK6VGQ/NlO/I15LXKNX2rhw1Mghw+q9mhLs+qIPuIaIS4SwQHwsmWeYcB3eSxaCm1j lFopF+hTUvj0dP4e59/Ts3fhKsG7BkSCDarh/8ADB3E32HJ+X+PCMj8RnxBadUQaz/Vb /LlMufyrfDsmwK9uZckN2dX+pbqwU/PnwxQbJL7MQeDNIJNrI3wyt9cPDmNFCdj7Bs+1 rMNdFThSm67SupTiXheLN2AW3GCHkgFpL5KJTGebcLZYKNQVWOME7Ig8ZXhhfKCEtvBL ynag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rbtqz+Wg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j71-20020a63804a000000b0057d08dac75csi4827184pgd.517.2023.10.30.05.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:09:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rbtqz+Wg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 044F3809FA4B; Mon, 30 Oct 2023 05:09:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233191AbjJ3MI0 (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 08:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233288AbjJ3MIA (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 1BDA6ED; 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=HZBuupFLaswcQ6rjSTSVB/ntkS6l460Cr5/0l0Mopvs=; b=Rbtqz+Wg5zyGBViMkYr4xebbbYx1WOd0ry6CidzOdH84DKlsd1jxDbl/ cvsrM+TUsZ99iVYFo5h/FfelaNw4c+ayNsJhSps2SrAf9QNic9rFZ3xDd RKIByol/Gw2u5fu1eCuVgW224cZcXvesORu9hXHMOVEcWja9BIH8zCx+O UQTG7mefr1+p3Ls7QepnDLfGYMlqao1ZVtFOWqd4gfszIMnJH76UgOJfD oDdR0cicIYWg3wd0jnFEXKJlklUB7VP9BpFPoOI0hGeaUDIaLhYkKIPqn w/jHo8OEwGe6HW4c37K7o/easJUNIKu8kZCBm6yCfrF+0mYE1cI6xqC3L w==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691344" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691344" 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="826036557" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036557" 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 88F464F0; 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 16/17] pinctrl: tigerlake: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:33 +0200 Message-Id: <20231030120734.2831419-17-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:09:02 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781182235214238898 X-GMAIL-MSGID: 1781182235214238898 |
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-tigerlake.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-tigerlake.c b/drivers/pinctrl/intel/pinctrl-tigerlake.c index 4768a69a9258..80cd7a06fe5a 100644 --- a/drivers/pinctrl/intel/pinctrl-tigerlake.c +++ b/drivers/pinctrl/intel/pinctrl-tigerlake.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> @@ -743,14 +744,12 @@ static const struct acpi_device_id tgl_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, tgl_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(tgl_pinctrl_pm_ops); - static struct platform_driver tgl_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { .name = "tigerlake-pinctrl", .acpi_match_table = tgl_pinctrl_acpi_match, - .pm = &tgl_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(tgl_pinctrl_driver);