Merge "msm: sensor: Adding mutex for actuator power down operations"
This commit is contained in:
commit
3127c29d05
1 changed files with 2 additions and 0 deletions
|
@ -1559,11 +1559,13 @@ static long msm_actuator_subdev_ioctl(struct v4l2_subdev *sd,
|
|||
pr_err("a_ctrl->i2c_client.i2c_func_tbl NULL\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
mutex_lock(a_ctrl->actuator_mutex);
|
||||
rc = msm_actuator_power_down(a_ctrl);
|
||||
if (rc < 0) {
|
||||
pr_err("%s:%d Actuator Power down failed\n",
|
||||
__func__, __LINE__);
|
||||
}
|
||||
mutex_unlock(a_ctrl->actuator_mutex);
|
||||
return msm_actuator_close(sd, NULL);
|
||||
default:
|
||||
return -ENOIOCTLCMD;
|
||||
|
|
Loading…
Add table
Reference in a new issue