Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69b0b3ab authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-linear-charger: fix of_property_read_bool() usage"

parents 4d07e124 528f859c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1653,7 +1653,7 @@ static int qpnp_lbc_chg_init(struct qpnp_lbc_chip *chip)
		return rc;
	}

	if (of_property_read_bool(chip->spmi->dev.of_node, "qcom,tchg-mins")) {
	if (of_find_property(chip->spmi->dev.of_node, "qcom,tchg-mins", NULL)) {
		rc = qpnp_lbc_tchg_max_set(chip, chip->cfg_tchg_mins);
		if (rc) {
			pr_err("Failed to set tchg_mins rc=%d\n", rc);