Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 714d2631 authored by Katta Santhisindhu's avatar Katta Santhisindhu Committed by Aditya Jonnalagadda
Browse files

msm-camera: Compat changes for camera file



Compat related changes for camera file. If an ioctl
which is not defined within the set of predefined ioctls
for this file, they are now being handled by a return
value of ENOIOCTLCMD.

Change-Id: Ic1fd9e8b3c0409203a8bf6c2ecc14243311cf697
Signed-off-by: default avatarKatta Santhisindhu <kattas@codeaurora.org>
parent 4db175e5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -690,12 +690,22 @@ static int camera_v4l2_close(struct file *filep)
	return rc;
}

#ifdef CONFIG_COMPAT
long camera_v4l2_compat_ioctl(struct file *file, unsigned int cmd,
	unsigned long arg)
{
	return -ENOIOCTLCMD;
}
#endif
static struct v4l2_file_operations camera_v4l2_fops = {
	.owner   = THIS_MODULE,
	.open	= camera_v4l2_open,
	.poll	= camera_v4l2_poll,
	.release = camera_v4l2_close,
	.ioctl   = video_ioctl2,
#ifdef CONFIG_COMPAT
	.compat_ioctl32 = camera_v4l2_compat_ioctl,
#endif
};

int camera_init_v4l2(struct device *dev, unsigned int *session)