diff options
author | Felipe Balbi <balbi@ti.com> | 2013-12-30 18:42:38 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-09 15:38:49 (GMT) |
commit | 31a0ede0de49a5897d7d97c68228ae79f86c38f0 (patch) | |
tree | 5e40b35e31b416f4fdd9b7eba10d743455436bd1 /drivers/usb/dwc3 | |
parent | e3c93e1a3f35be4cf1493d3ccfb0c6d9209e4922 (diff) | |
download | linux-31a0ede0de49a5897d7d97c68228ae79f86c38f0.tar.xz |
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>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions