hwmon: qpnp-adc-current: Perform trim update after init

Perform calibration to update trim immediately after
initialization to utilize interrupts as opposed to
performing it as part of driver initialization and
rely on polling. This improves the boot time. Also
add additional checks to ensure driver is initialized
before reading from rsense.

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