Loading drivers/power/supply/qcom/smb1360-charger-fg.c +4 −3 Original line number Diff line number Diff line /* Copyright (c) 2013-2015, 2018-2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2015, 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1407,12 +1407,13 @@ static int smb1360_set_minimum_usb_current(struct smb1360_chip *chip) if (rc) pr_err("Couldn't set ICL mA rc=%d\n", rc); if (!(chip->workaround_flags & WRKRND_USB100_FAIL)) if (!(chip->workaround_flags & WRKRND_USB100_FAIL)) { rc = smb1360_masked_write(chip, CMD_IL_REG, USB_CTRL_MASK, USB_100_BIT); if (rc) pr_err("Couldn't configure for USB100 rc=%d\n", rc); } } else { pr_debug("USB min current set to 500mA\n"); rc = smb1360_masked_write(chip, CMD_IL_REG, Loading Loading
drivers/power/supply/qcom/smb1360-charger-fg.c +4 −3 Original line number Diff line number Diff line /* Copyright (c) 2013-2015, 2018-2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2015, 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1407,12 +1407,13 @@ static int smb1360_set_minimum_usb_current(struct smb1360_chip *chip) if (rc) pr_err("Couldn't set ICL mA rc=%d\n", rc); if (!(chip->workaround_flags & WRKRND_USB100_FAIL)) if (!(chip->workaround_flags & WRKRND_USB100_FAIL)) { rc = smb1360_masked_write(chip, CMD_IL_REG, USB_CTRL_MASK, USB_100_BIT); if (rc) pr_err("Couldn't configure for USB100 rc=%d\n", rc); } } else { pr_debug("USB min current set to 500mA\n"); rc = smb1360_masked_write(chip, CMD_IL_REG, Loading