hwmon: qpnp-adc-current: Add div0 error checks during calibration

Add error checks to avoid div0 condition during periodic
gain/offset calibration and print more debug info
of the gain and offet while we are here.

Change-Id: I2b8431efa21eb9fe685455286f32fc825b924bee
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
1 file changed