OSDN Git Service

usb: dwc3: gadget: modify the scale in vbus_draw callback
authorRay Chi <raychi@google.com>
Sat, 27 Mar 2021 18:28:08 +0000 (02:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 11:35:54 +0000 (13:35 +0200)
commit8a5b5c3c1634f9d7a96ea3b38f3d75333c887bf6
tree76407b883e3c8c3a0d261bce7bc3007bd1bd5615
parent24327c478b2fc17a01b21a4721f35f22a51fe12b
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: 99288de36020 ("usb: dwc3: add an alternate path in vbus_draw callback")
Reported-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Ray Chi <raychi@google.com>
Link: https://lore.kernel.org/r/20210327182809.1814480-2-raychi@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c