This is broken in a few places, but nobody has noticed since all of our boards are port 0 = VBUS, port 1 = VCC. I'm going to assume that all designs going forward will use the same config (I'll document it of course), which will allow us to remove bd9995x_pd_port_to_chg_port() and simplify the driver quite a bit.
Comment 1 by bugdroid1@chromium.org
, Nov 7 2017