From: Tom Rini Date: Fri, 13 Mar 2020 13:25:11 -0400 Subject: [PATCH v2] cmd: gpio: Make `gpio input` return pin value again In-Reply-To: <20200311084629.49397-1-alex.kiernan@gmail.com> References: <20200311084629.49397-1-alex.kiernan@gmail.com> Message-ID: <20200313172511.GH12423@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 11, 2020 at 08:46:29AM +0000, Alex Kiernan wrote: > 4dbc107f4683 ("cmd: gpio: Correct do_gpio() return value") correctly > changed the behaviour of the gpio command to return CMD_RET_SUCCESS or > CMD_RET_FAILURE, but any existing script which expects the return value > to be the pin value is broken by this change. > > Reinstate the legacy behaviour for `gpio input` only. > > Fixes: 4dbc107f4683 ("cmd: gpio: Correct do_gpio() return value") > Signed-off-by: Alex Kiernan > Signed-off-by: Alex Kiernan > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: