From patchwork Tue Dec 19 16:30:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 1878081 X-Patchwork-Delegate: u.kleine-koenig@pengutronix.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=mess.org header.i=@mess.org header.a=rsa-sha256 header.s=2020 header.b=bE1UADNe; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.a=rsa-sha256 header.s=2020 header.b=V7XnzUo5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-pwm+bounces-577-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Svhyj2fwYz1ydc for ; Wed, 20 Dec 2023 03:31:09 +1100 (AEDT) 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 0519D285150 for ; Tue, 19 Dec 2023 16:31:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7720D1FAB; Tue, 19 Dec 2023 16:31:07 +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-pwm@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 To: linux-media@vger.kernel.org, linux-pwm@vger.kernel.org, Ivaylo Dimitrov , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Sean Young , 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: References: Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 According to Documentation/dev-tools/checkpatch.rst ENOTSUPP is not recommended and EOPNOTSUPP should be used instead. Signed-off-by: Sean Young Acked-by: Uwe Kleine-König --- include/linux/pwm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,