Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5921791rwl; Thu, 29 Dec 2022 05:08:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoYyO6kDztuTvVMzvjStmVb3k/ezlE+2e8zZM6dsSYeAMxaA7Uu2ZtyL6MgECavH2MaZr+ X-Received: by 2002:a05:6402:2b89:b0:46d:c288:e798 with SMTP id fj9-20020a0564022b8900b0046dc288e798mr23613837edb.21.1672319315713; Thu, 29 Dec 2022 05:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672319315; cv=none; d=google.com; s=arc-20160816; b=dSrzMTHwqa9Jea3IWx6PMLMtb6ceuEaXwZ57FmgPC92ihkvHVavYSFqqXWrUwktD2o f6/VAsCAYSUzP8koG2uskzc+Qru0rbBuH/csSitJs/c+HaATBD+vNRJEBTVfUNMmwHmF cqdJmpp+iDFQroB25HFHrYekpCRnFfwALGBkJudob6TtOAW8teiD3JZeK1VzyFFJxQEG p2EtSVZhKlrOS8pNOEV+LADqS+ZDHEgG0ntrDoZ3vZXQxpEYqzVHPHEWu35UoJ49NsVD hPvuMvF8YUgLnDRF2dMj+f12AlDNOKapw1ciZomOjZi0DQ0mg+AKe0FJeIzu5xyHhVDd bxwA== 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=cghtLJo9qhqya4WOmsiuPjkut7wtKXqectUZe0MTCJk=; b=PcdpNfByfwwQ2LxoYlni6VD3IMXDy2ohbNJxyO/mwVgCWyJth6bQfpAQQHuWPh7FJ0 09moENu+g034CI1SaLxy00vOelq48qAQ2IKTCZcQgIBYGAFO2YCmF2lz77KGQAMCrjmA nUwaAi9rJerWMO/F1JhUdXrbI8PWZiiYCZDpZbS1TFSTC96Y7LyS/JjMuoY7h9UhePkI ycAAu9kXivX3oOUzM2LiEuPEQxMcv9+817XjKesCnya4cJuqCNC3EI+NLGBSR+U08zXp rk+sK09mqm6h1UfViK3fNDp5nhiH5H+6gwwEemF0U2NVs0aAz/NTjJRmYfAuPQlLNz34 DLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UWWB2UmA; 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 w19-20020a056402269300b0046277d2cb0csi17145105edd.470.2022.12.29.05.08.21; Thu, 29 Dec 2022 05:08:35 -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=UWWB2UmA; 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 S233354AbiL2M7p (ORCPT + 61 others); Thu, 29 Dec 2022 07:59:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233376AbiL2M7e (ORCPT ); Thu, 29 Dec 2022 07:59:34 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54F4313E34; 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=cEYKSoq9ion/Msb52XFy1pALM0Lv1Yrd952UiRZkdb8=; b=UWWB2UmAg2uuSNqTDNEplkOTKevWDjfN+1lUl8W4RWjmKe2NYuDkUnrb jmte8hkQ+YojfLLpo9DMkiCuNoBZysUEZh/iZqG6Ve6eVltLIwcObXFw3 deY9HuLAo62XGe8DSa8hyHrHkotIFtkfAac3xP2gtg9Pa9RQOF4Frts7X I0qYNeEZTFUdpr5RoEU0yiSa/j6+J3IXyR6QoRrBp2Qx5FETYBzPUnLO2 lzoMVT5NHWCP48fO/PswtEfDP65ecte7UM1ET+pNp0LptrJmlI547gjBo aCEAiJ2qMoxuio4IpQdcm5bbiRznixSL3AQ8F32EQWAH5bXpOl60FE6Lb Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="318722547" X-IronPort-AV: E=Sophos;i="5.96,284,1665471600"; d="scan'208";a="318722547" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.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="684203053" X-IronPort-AV: E=Sophos;i="5.96,284,1665471600"; d="scan'208";a="684203053" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 29 Dec 2022 04:59:30 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 660871CA; 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 3/3] pinctrl: cherryview: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper Date: Thu, 29 Dec 2022 14:59:57 +0200 Message-Id: <20221229125957.45923-4-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,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-cherryview.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/drivers/pinctrl/intel/pinctrl-cherryview.c index 917563cef965..ddb83a40cce5 100644 --- a/drivers/pinctrl/intel/pinctrl-cherryview.c +++ b/drivers/pinctrl/intel/pinctrl-cherryview.c @@ -1875,9 +1875,7 @@ static int chv_pinctrl_resume_noirq(struct device *dev) return 0; } -static const struct dev_pm_ops chv_pinctrl_pm_ops = { - NOIRQ_SYSTEM_SLEEP_PM_OPS(chv_pinctrl_suspend_noirq, chv_pinctrl_resume_noirq) -}; +static DEFINE_NOIRQ_DEV_PM_OPS(chv_pinctrl_pm_ops, chv_pinctrl_suspend_noirq, chv_pinctrl_resume_noirq); static const struct acpi_device_id chv_pinctrl_acpi_match[] = { { "INT33FF", (kernel_ulong_t)chv_soc_data }, -- 2.35.1