phy: introduce phy_get_by_index
The upstream (v5.6-rc1) device tree node of the stm32mp157c-dk2's OHCI
has a phys property, but not phy-names. We have no API to reference
such a phy easily (passing NULL isn't allowed). Add one.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 45f82cd commit c4d7a0118e2b58eccc93267525105e368cb4e8f6
@Ahmad Fatoum Ahmad Fatoum authored on 20 Feb 2020
Sascha Hauer committed on 25 Feb 2020
Showing 2 changed files
View
drivers/phy/phy-core.c
View
include/linux/phy/phy.h