From mboxrd@z Thu Jan 1 00:00:00 1970 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 A5DF669D2F; Tue, 14 May 2024 10:43:36 +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=1715683416; cv=none; b=GuxadkQKx2gNLuHqUTWffB1BlOcyVKAxW0HEW1bbvExe97Z3E09k/e2WxN1v+HYa3BVgGsvEoBwOXtYEisBkJZHFBf6iFfClNSe3Bqo2PtpIiBIGRuszy9Kgu7HWF/Bha84960BXrc7IUXZPKa2Sxfd51mtTWOHtRwrTPZv7vW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683416; c=relaxed/simple; bh=Coz4rZ4JqWiHe6sd8jFStQ/unZs1j0rCXMf1WpfcWA4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qOQf7WiIk3iv8iZLaQbVw9v/Vkm+PQibABh5KYeg3ncgJ/ApJwdvnvqhH2T/fg+ZL0QEgtcoXict3q3Y/4JlEUo3XLoROzU+dgePX9PeUlVanc5O1qJpFwfhHq+ac8kVNv2kuYrPMwxDVcVLLXbCdgYVBX5rt0nMNVK4FDYt5Yk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GZCAzbYq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GZCAzbYq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 060A6C2BD10; Tue, 14 May 2024 10:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715683416; bh=Coz4rZ4JqWiHe6sd8jFStQ/unZs1j0rCXMf1WpfcWA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GZCAzbYqCgdMabMsq6MIeXoLnJI9VGYA76uDuNE6wMUMebB9e8Nv2WZjJI28Scx8r H4bTPZP0gwn0XwkglLxlQy76NTwbr7EgB8CtT88Uzxvkr3OYcp5txtoT/IT9Y2lnYL OMF1BPYCat/wIh0lTIbueJzmCVGMbHB8cZbZH/Ag= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kuppuswamy Sathyanarayanan , Andy Shevchenko , Sasha Levin Subject: [PATCH 6.8 182/336] gpio: wcove: Use -ENOTSUPP consistently Date: Tue, 14 May 2024 12:16:26 +0200 Message-ID: <20240514101045.474183530@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101038.595152603@linuxfoundation.org> References: <20240514101038.595152603@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko [ Upstream commit 0c3b532ad3fbf82884a2e7e83e37c7dcdd4d1d99 ] The GPIO library expects the drivers to return -ENOTSUPP in some cases and not using analogue POSIX code. Make the driver to follow this. Reviewed-by: Kuppuswamy Sathyanarayanan Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/gpio/gpio-wcove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-wcove.c b/drivers/gpio/gpio-wcove.c index c18b6b47384f1..94ca9d03c0949 100644 --- a/drivers/gpio/gpio-wcove.c +++ b/drivers/gpio/gpio-wcove.c @@ -104,7 +104,7 @@ static inline int to_reg(int gpio, enum ctrl_register type) unsigned int reg = type == CTRL_IN ? GPIO_IN_CTRL_BASE : GPIO_OUT_CTRL_BASE; if (gpio >= WCOVE_GPIO_NUM) - return -EOPNOTSUPP; + return -ENOTSUPP; return reg + gpio; } -- 2.43.0