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

Commit 58027d88 authored by Kavya Nunna's avatar Kavya Nunna
Browse files

power: qpnp-qg: Allow signed values for Rconn property



Currently, Rconn value is read as unsigned, but
now signed value can be added, typecast it before
assigning it to variable.

Change-Id: If87adf2da724b5bbdef081018c59d52530c97f7b
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
parent f277fa98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4303,7 +4303,7 @@ static int qg_parse_dt(struct qpnp_qg *chip)
	if (rc < 0)
		chip->dt.rbat_conn_mohm = 0;
	else
		chip->dt.rbat_conn_mohm = temp;
		chip->dt.rbat_conn_mohm = (int)temp;

	/* esr */
	chip->dt.esr_disable = of_property_read_bool(node,