Loading drivers/power/supply/qcom/qpnp-qg.c +3 −2 Original line number Diff line number Diff line /* Copyright (c) 2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019 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 @@ -2818,6 +2818,7 @@ static int qg_determine_pon_soc(struct qpnp_qg *chip) pr_err("Failed to lookup FULL_SOC@PON rc=%d\n", rc); goto done; } full_soc = CAP(0, 99, full_soc); rc = lookup_soc_ocv(&cutoff_soc, chip->dt.vbatt_cutoff_mv * 1000, Loading @@ -2835,7 +2836,7 @@ static int qg_determine_pon_soc(struct qpnp_qg *chip) qg_dbg(chip, QG_DEBUG_PON, "v_float=%d v_cutoff=%d FULL_SOC=%d CUTOFF_SOC=%d PON_SYS_SOC=%d pon_soc=%d\n", chip->bp.float_volt_uv, chip->dt.vbatt_cutoff_mv * 1000, full_soc, cutoff_soc, pon_soc, soc); full_soc, cutoff_soc, soc, pon_soc); } done: if (rc < 0) { Loading Loading
drivers/power/supply/qcom/qpnp-qg.c +3 −2 Original line number Diff line number Diff line /* Copyright (c) 2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019 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 @@ -2818,6 +2818,7 @@ static int qg_determine_pon_soc(struct qpnp_qg *chip) pr_err("Failed to lookup FULL_SOC@PON rc=%d\n", rc); goto done; } full_soc = CAP(0, 99, full_soc); rc = lookup_soc_ocv(&cutoff_soc, chip->dt.vbatt_cutoff_mv * 1000, Loading @@ -2835,7 +2836,7 @@ static int qg_determine_pon_soc(struct qpnp_qg *chip) qg_dbg(chip, QG_DEBUG_PON, "v_float=%d v_cutoff=%d FULL_SOC=%d CUTOFF_SOC=%d PON_SYS_SOC=%d pon_soc=%d\n", chip->bp.float_volt_uv, chip->dt.vbatt_cutoff_mv * 1000, full_soc, cutoff_soc, pon_soc, soc); full_soc, cutoff_soc, soc, pon_soc); } done: if (rc < 0) { Loading