hwmon: qpnp-adc: Ratelimit periodic calibration on error

Ratelimit the calls to do IADC periodic calibration based
on the error count. Once the IADC locks-up performing a
periodic calibration does not help. Ratelimit it to avoid
kernel buffer overflow with the IADC error logs.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Change-Id: I5e24854727a513758f40bbdf18ea6b1147d7e569
1 file changed