commit | 64bc4f5f406518dd363f2e18a60b12b465fcc0cc | [log] [tgz] |
---|---|---|
author | Siddartha Mohanadoss <smohanad@codeaurora.org> | Wed Dec 19 20:26:32 2012 -0800 |
committer | Siddartha Mohanadoss <smohanad@codeaurora.org> | Thu Dec 20 13:27:22 2012 -0800 |
tree | be1c368279d37d844f22d735b0611c35aeb0cb40 | |
parent | b60f64627ed6ef098340bd26be288a2cc9416041 [diff] |
hwmon: qpnp-vadc: Hold a lock during calibration Calibration is performed during the first read request. Have a lock around the calibration function to avoid race condition of running into a scenario if two clients issue an ADC request at the same time. Change-Id: I0f7d0978da0179937b2d4699b4402c8666482cd0 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>