mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
hwmon: qpnp-voltage: Log the fab-id and die-temp
Logging these adds more debugging info for die-temp based VADC compensation. Change-Id: I5236167f14ef59b17131d46376bba86f7ab11ef3 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
This commit is contained in:
parent
acdce02775
commit
1403237eb0
|
@ -925,6 +925,8 @@ int32_t qpnp_vbat_sns_comp_result(struct qpnp_vadc_chip *vadc,
|
|||
return rc;
|
||||
}
|
||||
|
||||
pr_debug("die-temp = %lld\n", die_temp_result.physical);
|
||||
|
||||
if (is_pon_ocv)
|
||||
rc = qpnp_ocv_comp(result, vadc, die_temp_result.physical);
|
||||
else
|
||||
|
@ -1609,6 +1611,7 @@ static int qpnp_vadc_probe(struct spmi_device *spmi)
|
|||
goto err_setup;
|
||||
}
|
||||
vadc->id = fab_id;
|
||||
pr_debug("fab_id = %d\n", fab_id);
|
||||
|
||||
rc = qpnp_vadc_read_reg(vadc, QPNP_VADC_REVISION2,
|
||||
&vadc->revision_dig_major);
|
||||
|
|
Loading…
Reference in a new issue