aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2012-12-18 15:25:46 +0100
committerGreg Kroah-Hartman <[email protected]>2013-01-11 16:16:01 -0800
commit8d8479db3dde3ef7a9bc803e565842764fa21a53 (patch)
tree6c4e2b049c675b62be0fd3d65ae606f367dfb56c /tools/perf/scripts/python/bin
parentece1d77ed73b335319725f1d5ffa72ca3fa9b05c (diff)
usb/core: consider link speed while looking at bMaxPower
The USB 2.0 specification says that bMaxPower is the maximum power consumption expressed in 2 mA units and the USB 3.0 specification says that it is expressed in 8 mA units. This patch adds a helper function usb_get_max_power() which computes the value based on config & usb_device's speed value. The the device descriptor dump computes the value on its own. Cc: Sarah Sharp <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions