Re: [PATCH RFT] phy: sun4i-usb: Use devm_gpiod_get_optional for optional GPIOs

2015-08-21 Thread Hans de Goede
Hi, On 21-08-15 10:49, Axel Lin wrote: Both data->id_det_gpio and data->vbus_det_gpio are optional, so use devm_gpiod_get_optional for them. Signed-off-by: Axel Lin Thanks for the patch, looks good to me: Reviewed-by: Hans de Goede Regards, Hans --- drivers/phy/phy-sun4i-usb.c | 22

[PATCH RFT] phy: sun4i-usb: Use devm_gpiod_get_optional for optional GPIOs

2015-08-21 Thread Axel Lin
Both data->id_det_gpio and data->vbus_det_gpio are optional, so use devm_gpiod_get_optional for them. Signed-off-by: Axel Lin --- drivers/phy/phy-sun4i-usb.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-