mmi-smbcharger-iio: Fix power watt error

When using USB DCP charging,
the power is 10W.
So the power_watt is 10000mW.

Change-Id: Id5421ffc6733eb620fc9fd0e3bce16751ef0245b
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2697637
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Guocheng Wang 2023-08-02 14:14:46 +08:00
commit 89376dbf50

View file

@ -3630,7 +3630,7 @@ static int smb_mmi_get_chg_info(struct smb_mmi_charger *chip, struct smb_mmi_chg
else if (usb_type == POWER_SUPPLY_TYPE_USB_CDP)
power_watt = 7500;
else if (usb_type == POWER_SUPPLY_TYPE_USB_DCP)
power_watt = 1000;
power_watt = 10000;
else if (usb_type == QTI_POWER_SUPPLY_TYPE_USB_HVDCP)
power_watt = chip->hvdcp_power_max;
else if (usb_type == QTI_POWER_SUPPLY_TYPE_USB_HVDCP_3)