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:
Anirudh Ghayal 2014-07-28 15:49:56 +05:30 committed by Gerrit - the friendly Code Review server
parent acdce02775
commit 1403237eb0

View file

@ -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);