From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 27 Jul 2015 17:31:20 -0600 Subject: [U-Boot] [PATCH 39/55] dm: gpio: Check a GPIO is valid before using it In-Reply-To: <1435882592-487-40-git-send-email-sjg@chromium.org> References: <1435882592-487-1-git-send-email-sjg@chromium.org> <1435882592-487-40-git-send-email-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2 July 2015 at 18:16, Simon Glass wrote: > Since a gpio_desc is allowed to be invalid we should return an error > indicating that the operation cannot be completed. This can happen if the > GPIO is optional - e.g. some devices may have a reset line and some may > not. > > Signed-off-by: Simon Glass > --- > > drivers/gpio/gpio-uclass.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Applied to u-boot-dm.