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: Kavya Nunna <knunna@codeaurora.org>
This commit is contained in:
Kavya Nunna 2020-07-22 17:18:37 +05:30 • committed by Gerrit - the friendly Code Review server
commit affa09cad3

View file

@ -4325,7 +4325,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,