Message ID | 7d6c10b52bbb29925fff9d2f16788a65c138921e.1703003288.git.sean@mess.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-5561-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2060755dyi; Tue, 19 Dec 2023 08:31:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOrFKFwAUj9PRhvFvQxOrLbinluLqvx+mYYM4CH2cUxCyWW8VLmvgYNZJO6mWg4O+O4gfV X-Received: by 2002:a17:902:d4c2:b0:1d3:675a:cbec with SMTP id o2-20020a170902d4c200b001d3675acbecmr5837018plg.24.1703003514033; Tue, 19 Dec 2023 08:31:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703003514; cv=none; d=google.com; s=arc-20160816; b=Z2LMuN3NmjbVsXzXnTKGmMM6Uotym/KehvYDtVZ5mcokZwBkGENhhc0sETMMcn8PrI tdrpt3b5MSSPD4Nr4z/EMVX9qG4vIYq4/+Z5HGUVb3pTXZviGHlmaEBzCQaM+ojzMBAZ ADtZxHZUz4UiXc1+VIrdr9grV0kcnCjHQTXv+FyWp7cxcqvVA250p21tZE8E4TLklYpa oAuo9TE8O8gmMtb42+nbD6Krc4QYR6yBIUZ/+DdvKqoSa8eGmqlCkaJlnH+XKAhM7jSZ zM+uw0t9j3dMuooysE+MIgiycRHb11zC74nfdUWAMkbOEV4BzSpzyBXR98IU7sIdjiMh N/Qw== ARC-Message-Signature: i=1; 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:dkim-signature; bh=mENA2QPZgoF9kco20FTQ0GpcO1pFdykWFx3kRUDKAP0=; fh=G36Ufr6lzVczrOndx/ne0QnYCnZHT0W+s6wWJgcb5Qs=; b=a4K7xUu6g6E9yDokA+7BMYuM3CZcfuf2kTtUQ8EAnmuRo4rri9DM23QiqxttKycSi0 FEioE6xXwUXIZIWZ7icEDlRqktsSgGltmnQ1PjahxOq5ctsPWbsBHBnKkrMdIkBJWqAO ISLZ7KwoySFZRhC3Zbxh4Mo5dE6rJokh4tAyaNTHrOQnY2Q0PLOfB71WJ/JyObLdAd3d e7QFDSQL4+z2SURHCf+OC5D/plgZ8dQ/xFrtHL2/+auc6vDJOEEf6kLk7N037zpzrP2d 52qio7OCbwZgFIEEJW1yeXNpAXGk4OlS4XgrwqmAIqW1Pu0n9/udh4jx5egw1biUj8lO PW5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=bE1UADNe; dkim=pass header.i=@mess.org header.s=2020 header.b=V7XnzUo5; spf=pass (google.com: domain of linux-kernel+bounces-5561-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5561-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c15-20020a634e0f000000b005c65d99188esi19514746pgb.34.2023.12.19.08.31.53 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:31:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5561-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=bE1UADNe; dkim=pass header.i=@mess.org header.s=2020 header.b=V7XnzUo5; spf=pass (google.com: domain of linux-kernel+bounces-5561-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5561-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 13343B213B4 for <ouuuleilei@gmail.com>; Tue, 19 Dec 2023 16:31:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 332F421118; Tue, 19 Dec 2023 16:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="bE1UADNe"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="V7XnzUo5" X-Original-To: linux-kernel@vger.kernel.org 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 417801D54D; Tue, 19 Dec 2023 16:31:05 +0000 (UTC) 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=1703003463; bh=M9WlBbQS+py4vER3IqEGVhXVemW9VnxieqHLqtwQ3LU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bE1UADNeB2uspHMYO3fCWbYA2MtHZ1o6vQMX7OMEAWNWK04X2PNGmfHb215SMxQxF aVTUi56JUtqcQZsLaz+d8QiQ/edH37rBaUsa754r5Jhbmb65DmIn+9GbDx5g7MMGWW cY0sQW3gmOSn0TQLrYCv/GA4sVyxKOY9BIXB2Ns7cDUOQ5egfO3FYDO4B4GLxWvmHW 07dvld+veB3/EhCgjVUHZVRrryXhZNJ2ay0uva29oAbkrz0+qyrCUCas0ta8bi3oQZ TYC7siMKU3sI6hfbjqCaCEncklEGdCpulOZOwbFlezPqrX0MetIN8XfXeGL3k65hkp PWM90dkxrTnQQ== Received: by gofer.mess.org (Postfix, from userid 501) id 91B1D100A03; Tue, 19 Dec 2023 16:31:03 +0000 (GMT) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1703003448; bh=M9WlBbQS+py4vER3IqEGVhXVemW9VnxieqHLqtwQ3LU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V7XnzUo5dtNydJL1osYe+LHZrYzldF0f0Pklco8NJlaQDeRO5p+9Em3YRowZIWJui G8uS0cpyjiI//V/DYUBXOPhdlyV45rF6Rt7JYopQNXkEGscmYTXP3jopTyleeL7X10 wb5LcWt1O39zsUWteKERN6vnpjFiUzBWp6QupRHyI5BU/35Y/lsrWf870vYJQ4FZt9 iHW7xQlVgOCIvUoAOlZ+IGC1hagKPFSfj3RG9B7xVVv1yXBk6bw0+K4S5/xjFQHKwg 7qLFhAAIOQgcOMiNj+lb1T1nuN+WNm1okZj8I1O19ae1g2uV8G065uz7g0h8zkcVEp 89WzAqwfgFQtQ== Received: from localhost.localdomain (bigcore.local [IPv6:2a02:8011:d000:212:ca7f:54ff:fe51:14d6]) (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 970D11002A3; Tue, 19 Dec 2023 16:30:48 +0000 (GMT) From: Sean Young <sean@mess.org> To: linux-media@vger.kernel.org, linux-pwm@vger.kernel.org, Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>, Thierry Reding <thierry.reding@gmail.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de> Cc: Sean Young <sean@mess.org>, linux-kernel@vger.kernel.org Subject: [PATCH v10 2/6] pwm: Replace ENOTSUPP with EOPNOTSUPP Date: Tue, 19 Dec 2023 16:30:25 +0000 Message-ID: <7d6c10b52bbb29925fff9d2f16788a65c138921e.1703003288.git.sean@mess.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <cover.1703003288.git.sean@mess.org> References: <cover.1703003288.git.sean@mess.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785728613010909463 X-GMAIL-MSGID: 1785728613010909463 |
Series |
[v10,1/6] pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()
|
|
Commit Message
Sean Young
Dec. 19, 2023, 4:30 p.m. UTC
According to Documentation/dev-tools/checkpatch.rst ENOTSUPP is
not recommended and EOPNOTSUPP should be used instead.
Signed-off-by: Sean Young <sean@mess.org>
---
include/linux/pwm.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Tue, Dec 19, 2023 at 04:30:25PM +0000, Sean Young wrote: > According to Documentation/dev-tools/checkpatch.rst ENOTSUPP is > not recommended and EOPNOTSUPP should be used instead. > > Signed-off-by: Sean Young <sean@mess.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Best regards Uwe
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index b64b8a82415c..c9cb87b59ac8 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -407,12 +407,12 @@ static inline int pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) { might_sleep(); - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int pwm_adjust_config(struct pwm_device *pwm) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int pwm_config(struct pwm_device *pwm, int duty_ns,