Currently, the power_supply usage in dwc3 is wrong. In addition, there is a build error when CONFIG_POWER_SUPPLY is not enabled. Therefore, these patches will fix the problems. Ray Chi (2): usb: dwc3: gadget: modify the scale in vbus_draw callback power: supply: Fix build error when CONFIG_POWER_SUPPLY is not enabled. drivers/usb/dwc3/gadget.c | 2 +- include/linux/power_supply.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) -- 2.31.0.291.g576ba9dcdaf-goog