mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
p938x_charger: Wait for LDO to report charging
There are too many cases of a wireless charger showing as charging when it is not. Only show when LDO is turned on even if it sacrifices some detection speed. Change-Id: I9bd1cb03428f4be4fcd2847b50fd7f0e9122154e Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1488807 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
5260ae84e6
commit
0145dd0928
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ static inline int p938x_is_chip_on(struct p938x_charger *chip)
|
|||
|
||||
static inline int p938x_is_tx_connected(struct p938x_charger *chip)
|
||||
{
|
||||
return (p938x_is_chip_on(chip) && (chip->stat & ST_VRECT_ON));
|
||||
return (p938x_is_chip_on(chip) && (chip->stat & ST_VOUT_ON));
|
||||
}
|
||||
|
||||
static inline int p938x_is_ldo_on(struct p938x_charger *chip)
|
||||
|
|
|
|||
Loading…
Reference in a new issue