Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp675212lqs; Fri, 14 Jun 2024 02:08:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPLlUNslBTZrNn7mquexJ2buoTFvYl1cFc76JV+oSM2H58Npqp+ZIEsACsBoGXWNmmdvpgXeLaiOQ3//rwkZe2O3oI6ZeBgAgGC1DAaw== X-Google-Smtp-Source: AGHT+IHgx30BQGIchMsAvlAu3adZKaiZhi0VyyO5RcMfnQS4Y4UmqiNqYK58ZS9FJLwOZBFKxjND X-Received: by 2002:a17:902:f54f:b0:1f6:6440:ca3c with SMTP id d9443c01a7336-1f8625cf07cmr25060415ad.22.1718356139524; Fri, 14 Jun 2024 02:08:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718356139; cv=pass; d=google.com; s=arc-20160816; b=Bn7fNlZFqxkY51PxZgL89cUilW8pgLkN8uDw0rQuhstO2WMMI5fmZNBoHK0Y9jV8bW GwVxbSuE43SUTyGtp4xikL+KZEn6vd98w9CEM0gwXYq0zbQIfRfY0Z08Q47qQICXVH1b j3CZW+vulj+d1PSjXK/LEAGuFiz/QOdCWMRqgn0MFwgGuJD4adIxDK5caR6LpT6THgkv m1dHbRF5Ze8/wfwLN4JidCNDjK35+BbwKfOgjRhBh3/H1Tkw9p1ezEThM2Q3/rtYF6Od TI53JPiGg6ahRTNlpaCceBLLcKidKmcFH3sv/GytnyNvtxKtqep+KSpvWUIq/h0bx8WE MLRg== 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:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=U87FLmB5SUD7hjNqRFhFKRG3aoaOhJX2RBIH7lILVOk=; fh=EN9ZoY4tHeWhXblvPf2o3iD3Db2ISt+Ef+1svEyXdlA=; b=maWq7kPBxIEP2+TDSFXH74M7/JSy2EkN0Vz4Z40C6z3IaBRsXqLu810aByh4OF5u/O bpuEqh8rkfTHoap9jh+FZE7IYjeh2D624qtf2Ke0PwE6zcwe5GU7IYgmHrX/ozRRkMeU 1rZm0GPINc7oSdDBxjEAly4X11NZRvI6mrQGavzNgivlUFM4hzLAw26KeNTgVE475HhR mdjlnoqfOP4jUmtPwXcN9k4kSbSR7eQC/K6205w0KLOUOcCAmGxrSuCtxuY/DSGJK4pC WK1VtGXyTaZx8NaUwCuG7wqhP1KmfOc6X4yhJEZCmXE4ljFHLdaEoB7G83WhNjGjI6fH c3sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=MXZx04ZT; dkim=pass header.i=@mess.org header.s=2020 header.b=MXZx04ZT; arc=pass (i=1 spf=pass spfdomain=mess.org dkim=pass dkdomain=mess.org dkim=pass dkdomain=mess.org dmarc=pass fromdomain=mess.org); spf=pass (google.com: domain of linux-kernel+bounces-214611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ecb521si31202625ad.228.2024.06.14.02.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:08:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=MXZx04ZT; dkim=pass header.i=@mess.org header.s=2020 header.b=MXZx04ZT; arc=pass (i=1 spf=pass spfdomain=mess.org dkim=pass dkdomain=mess.org dkim=pass dkdomain=mess.org dmarc=pass fromdomain=mess.org); spf=pass (google.com: domain of linux-kernel+bounces-214611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 09459282AD9 for ; Fri, 14 Jun 2024 09:08:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 421951922CE; Fri, 14 Jun 2024 09:08:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="MXZx04ZT"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="MXZx04ZT" Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (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 9C968146A7A; Fri, 14 Jun 2024 09:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=88.97.38.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356132; cv=none; b=HKJLJ+0Ww5HZ5RleMUI8TGjth482wbw6tbDuNgW2iovRsYXdF+ILj1huOUGSDJl2VXrleAHZYWqr9kpSrbFFxPcdVxu7+duRnr0mXmSNZB9XCzwJEMuNSJ5Mt3tXvPLuwS4abbH3WDRFKD+E5l5Ai1X2GI86+nInvGley/EHmnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356132; c=relaxed/simple; bh=4RP4q9QG25QH+De1LOzDhXZta2ZeRrdDRTLsqg6NviQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sIrZXYl/E8+gzfcoGDAidRCEu6b3Jzoj615NmxsSR6Er6wjIeyF9dxEv/EUIJ4dJ0j+VAFndSuNEt1QvHPiAHceML9m7N8Ui/ChkvY4/vVbPONKUB6P63o6a5okw9X2+JxYuKlb44y3Fzqw/z/hpEIUPj7Q1J/13ixZNaflR72I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org; spf=pass smtp.mailfrom=mess.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=MXZx04ZT; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=MXZx04ZT; arc=none smtp.client-ip=88.97.38.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1718356122; bh=4RP4q9QG25QH+De1LOzDhXZta2ZeRrdDRTLsqg6NviQ=; h=From:To:Cc:Subject:Date:From; b=MXZx04ZT9AN/P9rPEhdb4IzqE9vw6PolRAzCn9RBYYZQ7rklCBDnkxpE69XPsfsYz f9aXNX/D7Nqts+sHoBiOuNYvSGu36dQQGJ9tSekm22IDc+w+KDTtY/FYLcSAl8gGea +gUVACLvv849XtfBipBT+YT1bQkZ3NsW+Vb7gFT9/Jg/67lXlcZatOkAqiWc2FN+w6 CUYcvP/Tg60cqNqm8xozqhb8VPASqD6Og8DSSB1LByifj1idQ/ODHqgzKssbPtIfpq wueVc0ZBPZ6XKnKEsCcJ8c9MpbhrZ6QHez5/u1QBHLipuB3acKyp5Qrs3xKii20Gsx MUlgaacYc1V+g== Received: by gofer.mess.org (Postfix, from userid 501) id CB8BE1007EE; Fri, 14 Jun 2024 10:08:42 +0100 (BST) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1718356122; bh=4RP4q9QG25QH+De1LOzDhXZta2ZeRrdDRTLsqg6NviQ=; h=From:To:Cc:Subject:Date:From; b=MXZx04ZT9AN/P9rPEhdb4IzqE9vw6PolRAzCn9RBYYZQ7rklCBDnkxpE69XPsfsYz f9aXNX/D7Nqts+sHoBiOuNYvSGu36dQQGJ9tSekm22IDc+w+KDTtY/FYLcSAl8gGea +gUVACLvv849XtfBipBT+YT1bQkZ3NsW+Vb7gFT9/Jg/67lXlcZatOkAqiWc2FN+w6 CUYcvP/Tg60cqNqm8xozqhb8VPASqD6Og8DSSB1LByifj1idQ/ODHqgzKssbPtIfpq wueVc0ZBPZ6XKnKEsCcJ8c9MpbhrZ6QHez5/u1QBHLipuB3acKyp5Qrs3xKii20Gsx MUlgaacYc1V+g== Received: from localhost.localdomain (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 EEEC91000B8; Fri, 14 Jun 2024 10:08:41 +0100 (BST) From: Sean Young To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org Subject: [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep() Date: Fri, 14 Jun 2024 10:08:29 +0100 Message-ID: <20240614090829.560605-1-sean@mess.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit pwm_apply_state() is deprecated since commit c748a6d77c06a ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()"). Signed-off-by: Sean Young --- drivers/bus/ts-nbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/ts-nbus.c b/drivers/bus/ts-nbus.c index baf22a82c47a7..b8af44c5cdbd0 100644 --- a/drivers/bus/ts-nbus.c +++ b/drivers/bus/ts-nbus.c @@ -294,7 +294,7 @@ static int ts_nbus_probe(struct platform_device *pdev) state.duty_cycle = state.period; state.enabled = true; - ret = pwm_apply_state(pwm, &state); + ret = pwm_apply_might_sleep(pwm, &state); if (ret < 0) return dev_err_probe(dev, ret, "failed to configure PWM\n"); -- 2.45.2