hwmon: qpnp-adc-current: Disable IADC bank on the error path

Disable the IADC bank on the error path. If the end of conversion
bit is not set some of the status registers are collected. After
collecting them, disable the bank to avoid keeping the bank
enabled all the time. The bank is disabled on the success path
when the result is read.

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