commit | 1a0d20340be54247426287d147506cd6190a80d7 | [log] [tgz] |
---|---|---|
author | Siddartha Mohanadoss <smohanad@codeaurora.org> | Thu Nov 01 11:22:29 2012 -0700 |
committer | Siddartha Mohanadoss <smohanad@codeaurora.org> | Thu Nov 08 17:10:46 2012 -0800 |
tree | 0f2f8f224da4f80a398291004904d904017c1daf | |
parent | 0ee2812a2067605d4fe4e53b0f7b50a5260e172d [diff] |
hwmon: qpnp-adc-voltage: Add timeout for end of conversion Add a timeout while the ADC read API waits for the end of conversion interrupt. After a timeout, the status register is read to ensure the ADC conversion is complete. The timeout is added to return back to the user if the end of conversion interrupt is not triggered. Change-Id: I0deed0099212221c938a5ab7f775231e2bc85905 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>