Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2371979lqp; Sun, 24 Mar 2024 16:20:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOAqQT/dqS1lAZ7CYx9KiKJw1lj+b+aKC9bytuJnM0rGv4lfPeguiKNNUTe1SvwXk1Ee+Yx1PUPxORnHdaMpUM2doQgHRyPfkFvYG+Ag== X-Google-Smtp-Source: AGHT+IE7mXTkYWW0FXFaQkuzXjFybzjUCzgvvnBX46bfGvKgDAxkxf9gmXZYncOmXpoDFD4AkVrb X-Received: by 2002:a05:622a:5487:b0:431:3e1a:1569 with SMTP id ep7-20020a05622a548700b004313e1a1569mr6477620qtb.62.1711322406131; Sun, 24 Mar 2024 16:20:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711322406; cv=pass; d=google.com; s=arc-20160816; b=VoJVMd1WZd9LHF4N3qZLytr5ibFTzsHFreaIzZAb5zPN/spnDs+I9/tfJpdbbpEO/G RB8GUbUzZOOmV9sX88a1gTZIhgW9uAVLTxfm1Oho0xoUw4+gxErZuYTgEQs44Wtlt8PF dejmGg+0FRkm381kKAUShxacgAuzSGH5RZFgh9coHJCulkvn5ZnfY5//MViq2mvY4B8+ P6/Wejvl0AQ/fcealHuYQ6recuzLP9EYDpJxoUzr3sFHLBWKqqZkQaz0fGoDc8lthu8R 5MljtERTSDLTADBY/fPYIoeOLVv8hIjC0A/ciLIy2hOMjP+0iNd29TX25L3hqcS8bS1L qUgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rhttzaXa4CJhZWwmKkx7RCJybX9cfIB9pE9+qvtAzmA=; fh=6srCo23Ge3IGQJEIfgZ1/m1cnsN4nKmL7KSuW3gD6bM=; b=aTtzlUtWkCxJN4SeLBNoWSoGYEcJMsLQHIFJiKDnX1LTVGr1auHanuAu8YotycAxZm gJLaQMO05mMAO7UN0yhPjlaEpZ5/BWuCnDB8+VpZLpieQ3hEU5iHl6pLC0w7VZWuKcRL AvNQkZxzYd96TgZAp2yPvRaJuEz+XPib+adwi01CIl/l0b5QQW33CWlS/bdTtak4JEWg 0otkNF8aIHsd7UjL5jbVRskoZC1mmdG5qSGs48TQdbsS5tdSYjNXmnTj/oCzDJLoktAE 7/Y3ESjTiwq02jW0R+VVAly7bqLy+WgjPH1Fj/q9VWa5hCxNp3XcThL1II3t5Oactntv YrkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yj2RYXs/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bs13-20020ac86f0d000000b0042ee2b88e40si4906381qtb.727.2024.03.24.16.20.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yj2RYXs/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D29341C21839 for ; Sun, 24 Mar 2024 23:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D7B4153BCA; Sun, 24 Mar 2024 22:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yj2RYXs/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E7BC15350D; Sun, 24 Mar 2024 22:38:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319900; cv=none; b=RApWwcH3l6JVwzswuPtdutABEFgHdUrijtiSr9KusQCyrneUPEULP9hQ5dYqk14ZrC3w12gWhZDTEd4LHpPKARW6xHwj5Ox2gcD5N9pHvptxLAajeFwT6zdWOybuTJU/+4tah0OqfPyu5H20z9gPpZ4yRtwB2YKHF0BkgIe2lhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319900; c=relaxed/simple; bh=QF9tLI7gf/p9jDhZggGqID7Hb+pxEccMgbICkwA6//w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q4wA5+VjFKXNcbxxulqxhhv1IMxjHNV46woJrl3zsXDTdlukGlES2FUkbvVg2/Su76JveBiEb0hyeEqqfMV0OK91WCl5yeraZobcF3psgPayYStljGtE44UL9xSY0kbjgpGKxG5C9FOB/I87ufj++MU2GDfCN3Zsx5QdX6FZc08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Yj2RYXs/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63739C433F1; Sun, 24 Mar 2024 22:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319900; bh=QF9tLI7gf/p9jDhZggGqID7Hb+pxEccMgbICkwA6//w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yj2RYXs/dZhMHGWQJYvY/ljBGNjmYjkwkqTILk36ps8DBIL19uu1/pDG5hAWzABYB 3yb9pN4IolioDNHZO0YunA85yqZiHMotdc4ZkNEbAgr8YALWJpia4POCSFgxG3U67y CjF2NRvN9Z0LkM3q152fQIJIPZEdDGSWXvPyWVBS1a+Nh3EU/BdxTMKpEA8szBtsgj FECbFbFG+J+vjPnuicgV2LCkC9AljfYNmEsakd7WbEUgFOTaXqXgiS4tZFDJoJMTUs j87QttewPWVBWaNHQGf4VLLkvyM1a1e1P9qrp0k3sXoOEcmsbWO5ZkkgyuGSr/2/VI tRyzH73ILbMQQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Raag Jadav , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sasha Levin Subject: [PATCH 6.8 205/715] pwm: dwc: use pm_sleep_ptr() macro Date: Sun, 24 Mar 2024 18:26:24 -0400 Message-ID: <20240324223455.1342824-206-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Raag Jadav [ Upstream commit 7cfce2b80d5ff7aa713a7710bfe3a562707cb226 ] Since we don't have runtime PM handles here, we should be using pm_sleep_ptr() macro, so that the compiler can discard it in case CONFIG_PM_SLEEP=n. Fixes: 30b5b066fa83 ("pwm: dwc: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions") Signed-off-by: Raag Jadav Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20240212130247.9985-2-raag.jadav@intel.com Signed-off-by: Uwe Kleine-König Signed-off-by: Sasha Levin --- drivers/pwm/pwm-dwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c index 4929354f8cd95..a4a057ae03ea2 100644 --- a/drivers/pwm/pwm-dwc.c +++ b/drivers/pwm/pwm-dwc.c @@ -120,7 +120,7 @@ static struct pci_driver dwc_pwm_driver = { .remove = dwc_pwm_remove, .id_table = dwc_pwm_id_table, .driver = { - .pm = pm_ptr(&dwc_pwm_pm_ops), + .pm = pm_sleep_ptr(&dwc_pwm_pm_ops), }, }; -- 2.43.0