From patchwork Mon Dec 4 10:11:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raphael Gallais-Pou X-Patchwork-Id: 173197 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2662201vqy; Mon, 4 Dec 2023 02:13:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeXEBDNKOU5Kr6DfLDf1EZ64bb/i0mv9szGVBNi9uZQMpJfASdIdgrAxPb0zgUE7NmVojD X-Received: by 2002:a05:6a20:4282:b0:18f:1dc8:882b with SMTP id o2-20020a056a20428200b0018f1dc8882bmr4665408pzj.21.1701684787694; Mon, 04 Dec 2023 02:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701684787; cv=none; d=google.com; s=arc-20160816; b=RncUxnsrTNDCF/2YgdkO5jN4wdfBRDUADtFPzE+hYb29MJfk+cld8HkLQvANWjlk9m TtkaQf7umLu/SrGjY/FaKHhyc0zB58lqaztdYYWSYq0pTEVyoeUvevTlGHeQUXeaNCtq cryDk76/QKxTNhXNolP3WUU5bRdaVTFTN4qsgqITkjhpuxlWaRBYhQXSS7GRG/EKbCj0 epnGMgRLphnqeyt0tzPhFfXeX4KznRi2LQDSZO+j1mnaqD7U2ZqqADn0uJmR/74Qf4a9 rwqpZU9fPxLdo8H/la9KYxZPkKuM4I8ZQdD16WLQMiWitoxWBapxanzvaGoiQY4ieiLL 26vg== 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=uxlxZGGWiCK9ukUifKVDu5ceC0YPpoymX4MhiItDcpE=; fh=ljYCK+dOpF1YWW7z2A7qe7wO4UQbVAbOY9nPAWw9qJA=; b=niexLKqAqZn9fWoUmQ7uwfK+wGt4FRL7dIZPPfMkpe5mPMRuzzMkjRb8F9mt2to0/W jU7m5bhQ56m5SM2+m5+pmHW6tR+kNyNgt4jFwWm3pvskvm2FoLcommn6bWo8wpaQXBo0 Mt+OLZ3ym5JqdtaQAhAgciqXvUtymPALS3crPacnLr6oRhRljhnjqKRnLos9QvIE0nDF EVPJrhGCFVYGvjCVM0zbzF4Yp5ts4b+AKUqM3vjQCUo6JjdMzg0gAEsPhyxt0OjcxZP6 UbkDB18bEmab2Bfoa3iAUuVQjtfninBMngzl2qFM1tDCpboACjzAPUGU7b3CDXzYQPRj +J0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=xfyhtO6y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d16-20020a056a00245000b006c0e02cdadcsi7745718pfj.208.2023.12.04.02.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=xfyhtO6y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 778C1805E460; Mon, 4 Dec 2023 02:13:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232785AbjLDKMh (ORCPT + 99 others); Mon, 4 Dec 2023 05:12:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234823AbjLDKMd (ORCPT ); Mon, 4 Dec 2023 05:12:33 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8AEB103; Mon, 4 Dec 2023 02:12:38 -0800 (PST) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3B47qmuS011775; Mon, 4 Dec 2023 11:11:57 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=uxlxZGGWiCK9ukUifKVDu5ceC0YPpoymX4MhiItDcpE=; b=xf yhtO6yrjNOd14b9FGi4oHKHKiQMsBanHfnxjgLsckWsELDwMCILUvv6YGstnZzXD tVyMNCojHdhbiDRtZkLUKhk0t3f0VT4x+TG5BndWNpo9WGpZHi9ewUC2CPv2gkTK jEaqT6SnXufoeD4bvByKr3+3QuxZDt8XwAN2QwXJGI6rK9gQ1PCbreZBshukNMB2 hoPzn6i9gzTMA7Kv2EloombwN+bWsSBTl4eS865G5xXeK6bdtvRoSnGqZGMvS4vi cW5SvgOf2761MEQ9HdLP+xSHrwM7iWOEd1gsMEmDbWSnkLQVSjGDV/zpzc5U78o7 RBGALyruR+u/o2HFkbRQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3uqtvkxv31-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 11:11:57 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 07AD6100089; Mon, 4 Dec 2023 11:11:56 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id F0B9921ADB1; Mon, 4 Dec 2023 11:11:55 +0100 (CET) Received: from localhost (10.252.13.105) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 4 Dec 2023 11:11:53 +0100 From: Raphael Gallais-Pou To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Yannick Fertre , Philippe Cornu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Cochran CC: , , , , , Subject: [PATCH v2 1/4] drm/stm: dsi: use new SYSTEM_SLEEP_PM_OPS() macro Date: Mon, 4 Dec 2023 11:11:10 +0100 Message-ID: <20231204101113.276368-2-raphael.gallais-pou@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231204101113.276368-1-raphael.gallais-pou@foss.st.com> References: <20231204101113.276368-1-raphael.gallais-pou@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.252.13.105] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_06,2023-11-30_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 02:13:02 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784345827604650694 X-GMAIL-MSGID: 1784345827604650694 Use RUNTIME_PM_OPS() instead of the old SET_SYSTEM_SLEEP_PM_OPS(). This means we don't need __maybe_unused on the functions. Signed-off-by: Raphael Gallais-Pou --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index d5f8c923d7bc..b1aee43d51e9 100644 --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c @@ -544,7 +544,7 @@ static void dw_mipi_dsi_stm_remove(struct platform_device *pdev) regulator_disable(dsi->vdd_supply); } -static int __maybe_unused dw_mipi_dsi_stm_suspend(struct device *dev) +static int dw_mipi_dsi_stm_suspend(struct device *dev) { struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data; @@ -556,7 +556,7 @@ static int __maybe_unused dw_mipi_dsi_stm_suspend(struct device *dev) return 0; } -static int __maybe_unused dw_mipi_dsi_stm_resume(struct device *dev) +static int dw_mipi_dsi_stm_resume(struct device *dev) { struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data; int ret; @@ -580,8 +580,8 @@ static int __maybe_unused dw_mipi_dsi_stm_resume(struct device *dev) } static const struct dev_pm_ops dw_mipi_dsi_stm_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(dw_mipi_dsi_stm_suspend, - dw_mipi_dsi_stm_resume) + SYSTEM_SLEEP_PM_OPS(dw_mipi_dsi_stm_suspend, + dw_mipi_dsi_stm_resume) }; static struct platform_driver dw_mipi_dsi_stm_driver = {