mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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:
parent
fb5d9ede79
commit
affa09cad3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue