Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2689945rdh; Mon, 30 Oct 2023 05:08:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcAPShAeYwK0lAKTU8Hv4Oc8fNtcgBumL83547FaxsC2RZ2SugzwyZvSBE38elyIWL5IRa X-Received: by 2002:a05:6a00:3a03:b0:6be:1b39:2f3a with SMTP id fj3-20020a056a003a0300b006be1b392f3amr11417161pfb.14.1698667708564; Mon, 30 Oct 2023 05:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667708; cv=none; d=google.com; s=arc-20160816; b=eX1D57ySZ6tICwuTxZGimUhJ+OdVkzWtO3PI8V0uTb+MHErkxAljXG+LW+6E7eLi4P m/JWARX16UfOaj4EnUC+eMvhr4zpzKk/v34brb/81dB+veREuWqCOxCzdNBJp+uLtPhu +ET6sAr6ZAcFCzF0EJsH66zcfLvEVZQSC+2OnwZjKr/eVs1d98Qm8GiH+fi9AAKjDvo6 Glh3bGszvt1fdh8ExQLz1qLK0n8ws5//2hY1mL5OIfZamq+HVW1Me+unguzKrqmANwTN ZuJKMGYdOB/urt0z0GYImk+YDIIqzPVyuHy4jjl6Dw+9Ub41fos6Ceg/qFk3il6g1xKR Tc5Q== 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=E8EbX6rGzlmdAfc5vdOrqUJCDVNoZYhg45yef0nTkh8=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=Bj/0NkM+FxrRPvqaS4iyXDiS5nAqr/peB71QQicsBFWOSqHvONJjYl9pMfW0+WbUBJ WL7unCL5IffEV577fF9NsfUvYfntUkd0Ty7MLTUrKxVwAmMMwWRwVWH2QbVwhwJJMCpk /U2LVTUhCmNmpuaQmXnaix9teFS1GGzPSQ9ZlXIxXyFiWTsyxDWWIf262P7WAYAaScBH Y6MVwQbaadtfT7WDBWT57eA6xsFAv+iQHCnfHWuLtmgfgFPeNL6ux15riCFFBRS2S0eq LT6oulOw6G1R6TG9cEN5T24PCBxTreUTW0PYKRo42np0HVjMKU49uLKeTj8a9Iq8u+xc VzoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dz+WrMtc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bx39-20020a056a02052700b005893a7c438esi4986168pgb.689.2023.10.30.05.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dz+WrMtc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 63A55805FD79; Mon, 30 Oct 2023 05:08:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbjJ3MHz (ORCPT + 99 others); Mon, 30 Oct 2023 08:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233191AbjJ3MHq (ORCPT ); Mon, 30 Oct 2023 08:07:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84EDDD9; Mon, 30 Oct 2023 05:07:43 -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=ES3oJZhvoo6tpDdEQrliS51CVnx3gk7DgNepd+DgHrw=; b=dz+WrMtcu+vpg+n7uB64uBl5lj0o/7oZOxqNPY1tIXxzxrfI6gO1lX3L 7WvM/aIS7ZlkqFTR5+F6Jtspb8mB6rr2Q9KMhJ4jhG/knu6je6qvHAlkT nI95UyZzEeJcbvy4IsPodMpJludHkks519X4mSaZNLL/XgfkFqNBnrLtU qVUXxTR/iU6L1Lxtn5ehtjfKfw9E+bh6mjNEBZZn/zsYVj/FwV8gbIJ1w 3X3h2akarqpxPdlaAGPG+eGeK6M9/Q5FzcqSo4plUmt9hGSAbh0vM93pu BLZ0aRwZcjN3Ft6bWDM4jsvkG+MZAKw0cupG/8mrDJR3yOQaYzMt2TuTo w==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691286" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691286" 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:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="826036529" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036529" 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 16DE9304; 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 05/17] pinctrl: cedarfork: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:22 +0200 Message-Id: <20231030120734.2831419-6-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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:08:20 -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-cedarfork.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-cedarfork.c b/drivers/pinctrl/intel/pinctrl-cedarfork.c index a20465eb2dc6..48af8930dd1f 100644 --- a/drivers/pinctrl/intel/pinctrl-cedarfork.c +++ b/drivers/pinctrl/intel/pinctrl-cedarfork.c @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -319,8 +320,6 @@ static const struct intel_pinctrl_soc_data cdf_soc_data = { .ncommunities = ARRAY_SIZE(cdf_communities), }; -static INTEL_PINCTRL_PM_OPS(cdf_pinctrl_pm_ops); - static const struct acpi_device_id cdf_pinctrl_acpi_match[] = { { "INTC3001", (kernel_ulong_t)&cdf_soc_data }, { } @@ -332,7 +331,7 @@ static struct platform_driver cdf_pinctrl_driver = { .driver = { .name = "cedarfork-pinctrl", .acpi_match_table = cdf_pinctrl_acpi_match, - .pm = &cdf_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; -- 2.40.0.1.gaa8946217a0b