Thread (13 messages) 13 messages, 3 authors, 2019-02-12

Re: [PATCH v2 2/2] phy: qualcomm: usb: Add Super-Speed PHY driver

From: Jorge Ramirez <hidden>
Date: 2019-01-30 12:28:05
Also in: linux-arm-msm, linux-devicetree, linux-usb, lkml

On 1/30/19 10:53, Jorge Ramirez wrote:
quoted
+	priv->vbus = devm_regulator_get_optional(priv->dev, "vbus");
get_optional means that if vbus-supply is not found, rather than
returning a dummy regulator object this will fail with -ENODEV.
on this subject, is it intentional that devm_reset_control_get_optional
behaves differently (ie, it returns a NULL if it cant be found)

IMO all *_get_optional should be semantically as well as functionally
equivalent to avoid confusions like the one I had.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help