From patchwork Sun Jan 28 15:49:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 13534504 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EBBA9C47DA9 for ; Sun, 28 Jan 2024 15:56:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 64FC21126B9; Sun, 28 Jan 2024 15:56:24 +0000 (UTC) X-Greylist: delayed 423 seconds by postgrey-1.36 at gabe; Sun, 28 Jan 2024 15:56:23 UTC Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id A91391126B9 for ; Sun, 28 Jan 2024 15:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1706456954; bh=pIUGZH0WA/dnmasx5Fb75KygIBvTRFfwHo3C1qQyatU=; h=From:To:Cc:Subject:Date:From; b=ZCL1/V7gcX01+wyCS7/UsEozTQM9F/8MoG61d9vDsx88zcE31uxncRZKnVS6hRKB9 J8DVsMPT9Aw0u/0iu7UUO+lA93PSoxc1puOYQHwUjBxiC3TJGFIjQomLyHxfnWOZ10 LuFWN7KwDdaqnaWmdp2tiD0kG4TWJZ5zv2CvMBAD3vSUuFKq2+hLUM7hl0G3zEDXii Njb70xYcngVXJjQo46hpJJJoIhYi19COJJQ9ER0MDi91a6mtwLQyqbGsudFHXhSKST y0lACrc63WxEHpomV7MvUmrUOZNLvCstW2Z4uJSBjIhtPnX7icKBSMTA7DcNYikDHu s7SxWshdo+v5Q== Received: by gofer.mess.org (Postfix, from userid 501) id F02E91007E3; Sun, 28 Jan 2024 15:49:14 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1706456953; bh=pIUGZH0WA/dnmasx5Fb75KygIBvTRFfwHo3C1qQyatU=; h=From:To:Cc:Subject:Date:From; b=BVNGuGDPkHcq680/07H+MZm6kSMUHplL3QA/QQ1CydeLArEadowfvbwxBbASXbF0n baez3+xNJuwljbqm8wU8V4zzh5hww0sWtfqzGOwJJDxcxOJdDHYe0uXx3dWQLTOSb+ 5tgaLO5pon+/1mF7hZ4q+c6qFSXEjv5qEVq8sMp/jbzKUsj8Nl2/BZD8j6GAB6Q2mk FDqCWXWGeJGkJhqdF035VBmEhOJEfIH6nFJyz3aGzhpzkFzZHtdW6srpYnvnsReaYI ovnTJGJudjBtRV9DhZOBpSSVlfhR9E+KBVQd+mQeF6H1qz3aiBoK8s3LTVMo4/WFgT AJmVh+swGsFtw== Received: from bigcore.mess.org (bigcore.local [IPv6:2a02:8011:d000:212:bc3c:1b4a:a6fa:362f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gofer.mess.org (Postfix) with ESMTPSA id 6CFC91000B2; Sun, 28 Jan 2024 15:49:13 +0000 (GMT) From: Sean Young To: Flavio Suligoi , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Subject: [PATCH] backlight: mp3309c: Use pwm_apply_might_sleep() Date: Sun, 28 Jan 2024 15:49:04 +0000 Message-ID: <20240128154905.407302-1-sean@mess.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Sean Young , linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" pwm_apply_state() is deprecated since commit c748a6d77c06a ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()"). This is the final user in the tree. Signed-off-by: Sean Young Reviewed-by: Daniel Thompson Tested-by: Flavio Suligoi --- drivers/video/backlight/mp3309c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c index 34d71259fac1d..b0d9aef6942b3 100644 --- a/drivers/video/backlight/mp3309c.c +++ b/drivers/video/backlight/mp3309c.c @@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl) chip->pdata->levels[brightness], chip->pdata->levels[chip->pdata->max_brightness]); pwmstate.enabled = true; - ret = pwm_apply_state(chip->pwmd, &pwmstate); + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate); if (ret) return ret; @@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client) chip->pdata->default_brightness, chip->pdata->max_brightness); pwmstate.enabled = true; - ret = pwm_apply_state(chip->pwmd, &pwmstate); + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate); if (ret) return dev_err_probe(chip->dev, ret, "error setting pwm device\n");