diff options
author | Felipe Balbi <balbi@ti.com> | 2012-01-27 15:19:15 +0100 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-03-12 17:31:24 +0100 |
commit | 8d3709f3dd41769338cc383bec23673fd1ce34e7 (patch) | |
tree | 414259a3c273deaf166cdc2747f1ed8b170821fd /drivers/usb/host/xhci-mem.c | |
parent | xHCI: BESL calculation based on USB2.0 LPM errata (diff) | |
download | linux-8d3709f3dd41769338cc383bec23673fd1ce34e7.tar.xz linux-8d3709f3dd41769338cc383bec23673fd1ce34e7.zip |
usb: host: xhci: use __ffs() instead of hardcoding shift
__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>
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
0 files changed, 0 insertions, 0 deletions