bhnd_get_port_count
if (port >= bhnd_get_port_count(child, type))
num_ports = bhnd_get_port_count(sc->dev, types[i]);