usb: host: xhci: use __ffs() instead of hardcoding shift
authorFelipe Balbi <balbi@ti.com>
Fri, 27 Jan 2012 14:19:15 +0000 (16:19 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 12 Mar 2012 16:31:24 +0000 (09:31 -0700)
__ffs() can tell us which is the SEGMENT_SHIFT value
to be used. This will prevent problems when users are
too fast and don't pay attention to the need of fixing
the Shift after changing TRBS_PER_SEGMENT.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>

No differences found