Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2690009rdh; Mon, 30 Oct 2023 05:08:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCEb2QwM5qCit4PkDPWTgJGus/FYhVoOP+Dm55PWVcjXUOwvTuiZzrYlOG4j0WAGdM9/rQ X-Received: by 2002:a05:6a00:2d0b:b0:692:6d3f:485b with SMTP id fa11-20020a056a002d0b00b006926d3f485bmr7776409pfb.3.1698667716204; Mon, 30 Oct 2023 05:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667716; cv=none; d=google.com; s=arc-20160816; b=xGKes+x+bW1KzsiPzwtQUxGuygRFClWfHXKCYWJAP0IlLwWAmKd0OAspWfpg3B47Xv He5sZIjZTF8p/tBAAiaY8BySQOjDG9IMMorcAokwrntUUcHX/A0fk9vhmmLkau8ru1HV KNCkQb7QGrA6yGrnEp3NH8rOYnDSp31LDPnCbSrjLv8l2V3S77IRW4EUesbkc1sjFGfn NYWpFigofaACvYzVbPAKTKT3KyGwN+6ib5kTHNqlXPNFomBCtWRQmX/XXpUnhhM85Z/k SRsgHxK2wK0m/ymtYNOPa9EgDCDLOMOWMRHqoMe6lOhe4aUDzImOZjTVWaLHl8+sAvBb p7ew== 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=daHTN75WsYfCcWsYwOiCM56KbLF/YvMYlUORPoS2TMo=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=tenCvgaUCB/NQ4sN6A9sJQqfODLBQ3hZJ+opKaHoCC9L2I3sRf7AxqkXqlfL3Mv0b6 8KcOD6KnATNhrN/5Wv1Q/dO8wJcd4PdozGWsQ/Z8AgJwsVo+QsctPGeh7xeUMq9RAbQk XBdsHGV8/QSU8eFD1CTN8+81MDuFZmD1J/UH2H4aEU6RmIMXIJTHKsJoSnJ8vG9vW4gr XFnVck+zkPVnmCFKhuigQz6CKdAiY+S/Woo0M1IoxqXiRI2l+euthM9aYm6GApqQa0G1 q6EpWgx9AStWPYEb+p2/AaI5vALaGrojXJuv6tFRFiUDOw1Gfxixj0OnsucAWqKCyYA1 dnSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FuBuzokl; 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bw42-20020a056a0204aa00b005b9b68add9asi67655pgb.255.2023.10.30.05.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:36 -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=FuBuzokl; 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 3DFA9804C21A; Mon, 30 Oct 2023 05:08:32 -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 S233284AbjJ3MIN (ORCPT + 99 others); Mon, 30 Oct 2023 08:08:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233212AbjJ3MHr (ORCPT ); Mon, 30 Oct 2023 08:07:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7990DF; 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=1698667664; x=1730203664; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9pFkRMWLgBi/LHNsXTz9E6M/u1KF2ecizsnvXDof/k8=; b=FuBuzokl+0vw0/v22mcIQ+fRsgBk8tW6o8aAfXI2v89uAG1d7qKCMie7 9rOqpnfqNZi8nxv3fMBBqaG745i3q3FrLFxtJZs03bbrpq7oDlw2HooAK lT74ow8p4ujd6yLEILrzxfcF9eMr88tIQerAGfoNa9zigrTW+hew+wYm3 3SPrTsb6yLYwROlZ5EZdsX1YgTu/plNonoJxvB7X9LFVZaeKoSU6zz/Z1 51mjtfgeIrWzZ513jdT5BTXOzGEQmRkpOPmVdQLvB7p5FGV4a6D2XOBaT fDXknGxygNJDyL4/XdLAjHqoUuEfG/r5/3ww90jizcapv0FAw8HiTUPmX Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="373107379" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="373107379" 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:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="753771407" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="753771407" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga007.jf.intel.com with ESMTP; 30 Oct 2023 05:07:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 5E64C472; Mon, 30 Oct 2023 14:07:36 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij , Paul Cercueil , Jonathan Cameron Subject: [PATCH v3 11/17] pinctrl: jasperlake: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:28 +0200 Message-Id: <20231030120734.2831419-12-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: 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:32 -0700 (PDT) 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 --- drivers/pinctrl/intel/pinctrl-jasperlake.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-jasperlake.c b/drivers/pinctrl/intel/pinctrl-jasperlake.c index 50f137deed9c..3525480428ea 100644 --- a/drivers/pinctrl/intel/pinctrl-jasperlake.c +++ b/drivers/pinctrl/intel/pinctrl-jasperlake.c @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -326,14 +327,12 @@ static const struct acpi_device_id jsl_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, jsl_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(jsl_pinctrl_pm_ops); - static struct platform_driver jsl_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { .name = "jasperlake-pinctrl", .acpi_match_table = jsl_pinctrl_acpi_match, - .pm = &jsl_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(jsl_pinctrl_driver); -- 2.40.0.1.gaa8946217a0b