Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2604182rdb; Mon, 4 Dec 2023 02:13:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgvP/sAtEhzLy9C5q9QrbxqBlymjWeAaMHAL1oPxrlZKOqveZE69YUprSdTQPSZtSRuPDU X-Received: by 2002:a05:6358:52c8:b0:16d:aead:f74f with SMTP id z8-20020a05635852c800b0016daeadf74fmr941108rwz.13.1701684791013; Mon, 04 Dec 2023 02:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701684790; cv=none; d=google.com; s=arc-20160816; b=mpbUscRQIW07khi0IBgvH5uZwQNOQVCsQ75re+x/E3cZOwPdd/SG/Wi5eB2H8Vcfcp IKVmVxSKdHFAOglIexlV5iCLXtL6gth/MfzHJEw3vVOqgL2SUfosXrUoYNuolx8/cf71 3bO7Uw9wHL4+fkp8cAw93g3t9l9q/i1z+k3nHNpzUQZMNOMbq5eSzrhmeAPfaiedcZqB 6okUOyIuDEfjxxIEx1VZDOZaKh9Ql87yZFtspsl7bXz1KPYIk7WfUX88EmlE/uFs3Rcg DyT5ZoB3c7mXHr06fEo0BfxEka6tNS194M2CvKpljvWFt4nlg9RMiKsXrTY0qxA0CFeg PB9w== 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 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c7-20020a656747000000b005c603f06562si8124781pgu.333.2023.12.04.02.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:13:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; 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 2620:137:e000::3:2 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 80145805E460; Mon, 4 Dec 2023 02:13:08 -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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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:08 -0800 (PST) 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 = { -- 2.25.1