Home
last modified time | relevance | path

Searched hist:"31 a0ede0de49a5897d7d97c68228ae79f86c38f0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/musb/
H A Dmusb_core.cdiff 31a0ede0de49a5897d7d97c68228ae79f86c38f0 Mon Dec 30 12:42:38 CST 2013 Felipe Balbi <balbi@ti.com> usb: musb: core: improve musb_interrupt() a bit

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: Felipe Balbi <balbi@ti.com>