• Johan Hovold's avatar
    USB: serial: mos7720: clean up mcs7715 port setup · d760557d
    Johan Hovold authored
    Clean up the mcs7715 port setup by using the new endpoint-remap
    functionality provided by core. Instead of poking around in internal
    port-structure fields, simply swap the endpoint descriptors of the two
    ports in calc_num_ports before the port structures are even allocated.
    
    Note that we still need to override the default interrupt completion
    handler.
    Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
    d760557d
mos7720.c 55.8 KB