staging: greybus: Use gpio_is_valid()
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 28 Apr 2018 04:35:39 +0000 (10:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 13:25:52 +0000 (15:25 +0200)
commita2e63709b53312002009c564460af34520c62f98
treee5b27e47715c264431bb0db71c92fd57a97cd4d1
parent3ea74d38a86ae6217d8fcfc5e96607e09435b8e8
staging: greybus: Use gpio_is_valid()

Replace the manual validity checks for the GPIO with the
gpio_is_valid().

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-platform.c