[U-Boot] [PATCH 03/21] sunxi: usbc: Fix vbus gpio handling to work with the device-model

Fabio Estevam
2015-04-24T18:10:47Z

On Fri, Apr 24, 2015 at 10:48 AM, Hans de Goede <hdegoede@redhat.com> wrote:

> sunxi_usbc->gpio_vbus = get_vbus_gpio(index);
> - if (sunxi_usbc->gpio_vbus != -1) {
> + if (sunxi_usbc->gpio_vbus >= 0) {

What about using dm_gpio_is_valid() instead?

Regards,

Fabio Estevam