msm: camera: Add mutex to avoid race condition for cci dev

When cci device is accessed by multiple clients simultaneously,
reference count will be out of sync. So adding Mutex to protect
cci params and state change during simultaneous access.

Change-Id: I1e26176c7c2ea11170cc944000e68058c8a90b74
Signed-off-by: Om Parkash <oparkash@codeaurora.org>
3 files changed