Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5929063rwl; Thu, 29 Dec 2022 05:14:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXuorGCpF8uoQnwZB9luUXrva4eFVb5aYfFioCqsZHfQ2vStfzrN1p8OaDO+IjpvLXZvOlsj X-Received: by 2002:a05:6402:2927:b0:46f:d386:117d with SMTP id ee39-20020a056402292700b0046fd386117dmr22317820edb.33.1672319650963; Thu, 29 Dec 2022 05:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672319650; cv=none; d=google.com; s=arc-20160816; b=CdvWaprNK2aS3RPNa5TMKVEz5Qbf+ZAZD61y+kNeSGIWgdls9bPLhg3QUanG51/t97 7yRTynf4C1aUvKxRlpFS3iUWudqVl8v8CSy7URrE0vcz+PlqDKC0eB5paxmW3B3XeVmd lNnxrp7WvuegadG7lOWwYQCyfN3/MNfgB0fktsInWa5Ex5DKCNd1ecJ0Lkp7clK5UGn2 Ch8P5MZ5Rf0dRUTf3Enb5HEIzscT1+WvjXbTGChoDZP1Mp9/m3egBxbT0MefHS4koWhC mGiVIlTR57nEIqO12SvGt42khlOqAGObHfbQq5P1jOm2h4nDpyT+x/U6LF5LmNOJ0VBE BSBQ== 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=alECcmk2uJPKI4ODZWame81NdHs0vMNW4z7Uiovx0m0=; b=caS2LPSVV0WC2KGLxDkv5NIZGYI97I0J+e6Jc3wwuFUe31fwaMnRW3PQq6upHPT6GX T5IsJ4AWwiQefUq6xIEqYXHk69wb+XU22fmFR3+PBkJfMJE71Z9QqZUInm7eq3Uknul3 34TzEbE+1sjANFGhzdGrqewybHuOmjVc2WW6HEvXJOHGptTuuXeOL216CXomJ6NKn7Tj 8XtVutiuj3kRn5fZGqin5BHKQjFBQ3/MMv3sa+Evmj4MPLwbnr5hpufhKSgFR3lgztRE OzEYKpOefFjL8ynhCZlyr/RR3Fa9239crq2Xc3Y85zSsHCowevFf5KcFEJWfkz9wt6lG IYEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fmEWMVTj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056402090c00b00469bd46b090si17879773edz.261.2022.12.29.05.13.33; Thu, 29 Dec 2022 05:14:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fmEWMVTj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233418AbiL2M7s (ORCPT + 61 others); Thu, 29 Dec 2022 07:59:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233383AbiL2M7f (ORCPT ); Thu, 29 Dec 2022 07:59:35 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E03D13E3A; Thu, 29 Dec 2022 04:59:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672318774; x=1703854774; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3WsSO9O51lFPB1otUWTEinjSTgtzgo4BI9Nj5m+iCzE=; b=fmEWMVTj3hxgA9jr76ZHXVZoK4s0GJLg04t4ROqaoGSHreJTOLuIAh4q OYteP2AkvPFOAX4+8Gp9Q5qdwogKekVCPocPFRmew8i1+6ELnQ5Y6fZnS stb22KFPIm4H2dh20fhVY0T9pvYKua1l/hjS/2SxU/FQWVu/+qvvQyjHG 5jNdI/ID2bth3UfLPD7OvgRvsPufRIL3fdML9ZLCAnf8oKvCXQTWtFyGB 7yTkDWzzH/a7tSjTpnTX9pzCq5efS4WWaXj36gMeUS9cd2dHLHCsGRozR kiKor624GzaH/bePF3NlZsGAcnaTl4kgDhOix/NOFew//3MRcNzj9aMn0 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="348247468" X-IronPort-AV: E=Sophos;i="5.96,284,1665471600"; d="scan'208";a="348247468" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2022 04:59:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="777691263" X-IronPort-AV: E=Sophos;i="5.96,284,1665471600"; d="scan'208";a="777691263" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 29 Dec 2022 04:59:30 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 5CBF719E; Thu, 29 Dec 2022 15:00:01 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Mika Westerberg , "Rafael J. Wysocki" , Paul Cercueil , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij , "Rafael J. Wysocki" , Len Brown , Pavel Machek Subject: [PATCH v1 2/3] pinctrl: intel: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper Date: Thu, 29 Dec 2022 14:59:56 +0200 Message-Id: <20221229125957.45923-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221229125957.45923-1-andriy.shevchenko@linux.intel.com> References: <20221229125957.45923-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since pm.h provides a helper for system no-IRQ PM callbacks, switch the driver to use it instead of open coded variant. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/intel/pinctrl-intel.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-intel.h b/drivers/pinctrl/intel/pinctrl-intel.h index 350328988571..207ef71f4a7d 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.h +++ b/drivers/pinctrl/intel/pinctrl-intel.h @@ -261,9 +261,7 @@ int intel_pinctrl_probe_by_uid(struct platform_device *pdev); int intel_pinctrl_suspend_noirq(struct device *dev); int intel_pinctrl_resume_noirq(struct device *dev); -#define INTEL_PINCTRL_PM_OPS(_name) \ -const struct dev_pm_ops _name = { \ - NOIRQ_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend_noirq, intel_pinctrl_resume_noirq) \ -} +#define INTEL_PINCTRL_PM_OPS(name) \ + DEFINE_NOIRQ_DEV_PM_OPS((name), intel_pinctrl_suspend_noirq, intel_pinctrl_resume_noirq) #endif /* PINCTRL_INTEL_H */ -- 2.35.1