Commit b015d2ef authored by Ray Chi's avatar Ray Chi Committed by Greg Kroah-Hartman
Browse files

FROMGIT: usb: dwc3: gadget: modify the scale in vbus_draw callback



Currently, vbus_draw callback used wrong scale for power_supply.
The unit of power supply should be uA.
Therefore, this patch will fix this problem.

Fixes: 99288de3 ("usb: dwc3: add an alternate path in vbus_draw callback")
Reported-by: default avatarSebastian Reichel <sre@kernel.org>
Signed-off-by: default avatarRay Chi <raychi@google.com>
Link: https://lore.kernel.org/r/20210327182809.1814480-2-raychi@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
( cherry picked from commit 8a5b5c3c
  https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git

 usb-next)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: Icc81f33d00221d33bd3ac0ec775ec02cad5079a4
parent 76284302
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment