msm: ais: sensor: actuator: add conditional check for ioctl
Add conditional check when sending VIDIOC_MSM_ACTUATOR_CFG32. Change-Id: I8f47823a9f932fe9f3fa96560f16d7da755a781f CRs-Fixed: 2060371 Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
This commit is contained in:
parent
7aa065cbc4
commit
4151bedcbe
1 changed files with 4 additions and 0 deletions
|
@ -1722,6 +1722,10 @@ static long msm_actuator_subdev_do_ioctl(
|
||||||
parg = &actuator_data;
|
parg = &actuator_data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
case VIDIOC_MSM_ACTUATOR_CFG:
|
||||||
|
pr_err("%s: invalid cmd 0x%x received\n", __func__, cmd);
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = msm_actuator_subdev_ioctl(sd, cmd, parg);
|
rc = msm_actuator_subdev_ioctl(sd, cmd, parg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue