Waddledee: Use cached Vbus presence
Convert pd_snk_is_vbus_provided() to return the cached Vbus presence
from the charger driver.
BRANCH=None
TEST=on waddledee, confirm charger and powered dongle can connect to
both ports
@@ -76,9 +76,5 @@ int pd_set_power_supply_ready(int port)
int pd_snk_is_vbus_provided(int port)
{
- int chg_det = 0;
-
- sm5803_get_chg_det(port, &chg_det);
-
- return chg_det;
+ return sm5803_is_vbus_present(port);
}
