----- Mail original -----
De: "Fabio Estevam" <feste...@gmail.com>
À: "Robert Jarzmik" <robert.jarz...@free.fr>
Cc: "Felipe Balbi" <ba...@ti.com>, "Linus Walleij" <linus.wall...@linaro.org>, 
"Philipp Zabel" <philipp.za...@gmail.com>, "USB list" 
<linux-usb@vger.kernel.org>
Envoyé: Mardi 27 Janvier 2015 10:40:35
Objet: Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc
> -               nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpios");
> +               nop->gpiod_reset = devm_gpiod_get_optional(dev, 
> "reset-gpios");

> According to Documentation/gpio/board.txt:

> "GPIOs mappings are defined in the consumer device's node, in a
> property named <function>-gpios"
> so this should be:
> nop->gpiod_reset = devm_gpiod_get_optional(dev, "reset");
Ah you're right, I see it now ... in of_find_gpio(), the match is done on 
"%s-%s", where
the first one is the string in devm_gpiod_get(), and the second one is either 
"gpio" or
"gpios" ...

I'll amend my patch just as you said, my bad.

Cheers.

--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to