mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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:
parent
e2e260f135
commit
89376dbf50
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue