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

Commit c30b46e5 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: subdev: Generic ioctl support



Instead of returning an error when receiving an ioctl call with an
unsupported command, forward the call to the subdev core::ioctl handler.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent cfe2cde6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -405,6 +405,11 @@ VIDIOC_UNSUBSCRIBE_EVENT
	To properly support events, the poll() file operation is also
	implemented.

Private ioctls

	All ioctls not in the above list are passed directly to the sub-device
	driver through the core::ioctl operation.


I2C sub-device drivers
----------------------
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
	}
#endif
	default:
		return -ENOIOCTLCMD;
		return v4l2_subdev_call(sd, core, ioctl, cmd, arg);
	}

	return 0;