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

Fabio Estevam festevam at gmail.com
Fri Apr 24 20:10:47 CEST 2015


On Fri, Apr 24, 2015 at 10:48 AM, Hans de Goede <hdegoede at 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


More information about the U-Boot mailing list