drivers: phy: Add support for optional phys
Add devm_phy_optional_get and phy_optional_get, which should be used when the phy is optional. They does not return an error when the phy does not exist, rather they returns NULL, which is considered as a valid phy, but results in NOPs when used with the consumer API. Signed-off-by: NAndrew Lunn <andrew@lunn.ch> Tested-by: NGregory CLEMENT <gregory.clement@free-electrons.com> Acked-by: NKishon Vijay Abraham I <kishon@ti.com> Signed-off-by: NJason Cooper <jason@lakedaemon.net>
Showing
想要评论请 注册 或 登录