• Felipe Balbi's avatar
    usb: musb: core: improve musb_interrupt() a bit · 31a0ede0
    Felipe Balbi authored
    instead of using manually spelled out bit-shits
    and iterate over each of the 16-bits (one for
    each endpoint) on each direction, we can make use
    of for_each_set_bit() which internally uses
    find_first_bit().
    
    This makes the code slightly more readable while
    also making we only iterate over bits which are
    actually set.
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    31a0ede0
musb_core.c 69.7 KB