From 694e31d7bf4fbb69f00a121e74abd46351132974 Mon Sep 17 00:00:00 2001 From: David Cohen Date: Wed, 30 May 2012 10:35:22 -0700 Subject: [PATCH] [PORT FROM R4] [Enzo Support] atomisp: forward motor's private data ioctl to motor's subdev BZ: 27947 Change-Id: If9bee4f78db475f0665e46241f69642ba874f7b4 Orig-Change-Id: Ie728cbf37befcacdfa706886108184645cfebac2 Signed-off-by: David Cohen Reviewed-on: http://android.intel.com:8080/51107 Reviewed-by: Koski, Anttu Tested-by: Koski, Anttu Reviewed-by: buildbot Tested-by: buildbot --- drivers/media/video/atomisp/atomisp_ioctl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/media/video/atomisp/atomisp_ioctl.c b/drivers/media/video/atomisp/atomisp_ioctl.c index c53ec3e..e6c85e1 100644 --- a/drivers/media/video/atomisp/atomisp_ioctl.c +++ b/drivers/media/video/atomisp/atomisp_ioctl.c @@ -1773,6 +1773,16 @@ static long atomisp_vidioc_default(struct file *file, void *fh, case ATOMISP_IOC_G_SENSOR_MODE_DATA: return atomisp_get_sensor_mode_data(isp, arg); + case ATOMISP_IOC_G_MOTOR_PRIV_INT_DATA: + if (isp->inputs[isp->input_curr].motor) + return v4l2_subdev_call( + isp->inputs[isp->input_curr].motor, + core, ioctl, cmd, arg); + else + return v4l2_subdev_call( + isp->inputs[isp->input_curr].camera, + core, ioctl, cmd, arg); + case ATOMISP_IOC_S_EXPOSURE: case ATOMISP_IOC_G_SENSOR_CALIBRATION_GROUP: case ATOMISP_IOC_G_SENSOR_PRIV_INT_DATA: -- 2.7.4