drivers: phy: add generic_phy_valid() method
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 18 Jul 2017 09:38:43 +0000 (11:38 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:05 +0000 (23:34 +0200)
commitb94888b4c051126b02770066ce1e7f4ea9a1ced8
tree1380fe00b0433b1ad7e52475c968dbe3a4d37257
parentb9688df3cbf4bf92fa96e1cc9ff7be510e06b54b
drivers: phy: add generic_phy_valid() method

This allow to check if a PHY has been correctly
initialised and avoid to get access to phy struct.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
include/generic-phy.h