camera: v4l2: Use v4l2_event for event from config to app.
This simplies the way event is propagated. Driver only needs
to pass on the v4l2_event structure directly.
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
diff --git a/include/media/msm_camera.h b/include/media/msm_camera.h
index 0bd42f7..7205c0d 100644
--- a/include/media/msm_camera.h
+++ b/include/media/msm_camera.h
@@ -136,7 +136,7 @@
_IOR(MSM_CAM_IOCTL_MAGIC, 40, struct msm_cam_config_dev_info *)
#define MSM_CAM_IOCTL_V4L2_EVT_NOTIFY \
- _IOR(MSM_CAM_IOCTL_MAGIC, 41, struct msm_camera_event *)
+ _IOR(MSM_CAM_IOCTL_MAGIC, 41, struct v4l2_event *)
#define MSM_CAMERA_LED_OFF 0
#define MSM_CAMERA_LED_LOW 1
@@ -219,7 +219,8 @@
#define MSM_CAM_RESP_STEREO_OP_2 3
#define MSM_CAM_RESP_V4L2 4
#define MSM_CAM_RESP_DIV_FRAME_EVT_MSG 5
-#define MSM_CAM_RESP_MAX 6
+#define MSM_CAM_RESP_DONE_EVENT 6
+#define MSM_CAM_RESP_MAX 7
#define MSM_CAMERA_EVT_TYPE_BASE V4L2_EVENT_PRIVATE_START
enum msm_camera_event_type {