mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
media: atomisp: Remove empty s_stream() op from CSI subdev
Remove the empty csi2_set_stream() callback and remove the now empty csi2_video_ops struct. While at it also remove the empty csi2_core_ops struct. Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
b0525740af
commit
8ff6604cd3
|
|
@ -141,27 +141,6 @@ static int csi2_set_format(struct v4l2_subdev *sd,
|
|||
&fmt->format);
|
||||
}
|
||||
|
||||
/*
|
||||
* csi2_set_stream - Enable/Disable streaming on the CSI2 module
|
||||
* @sd: ISP CSI2 V4L2 subdevice
|
||||
* @enable: Enable/disable stream (1/0)
|
||||
*
|
||||
* Return 0 on success or a negative error code otherwise.
|
||||
*/
|
||||
static int csi2_set_stream(struct v4l2_subdev *sd, int enable)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* subdev core operations */
|
||||
static const struct v4l2_subdev_core_ops csi2_core_ops = {
|
||||
};
|
||||
|
||||
/* subdev video operations */
|
||||
static const struct v4l2_subdev_video_ops csi2_video_ops = {
|
||||
.s_stream = csi2_set_stream,
|
||||
};
|
||||
|
||||
/* subdev pad operations */
|
||||
static const struct v4l2_subdev_pad_ops csi2_pad_ops = {
|
||||
.enum_mbus_code = csi2_enum_mbus_code,
|
||||
|
|
@ -172,8 +151,6 @@ static const struct v4l2_subdev_pad_ops csi2_pad_ops = {
|
|||
|
||||
/* subdev operations */
|
||||
static const struct v4l2_subdev_ops csi2_ops = {
|
||||
.core = &csi2_core_ops,
|
||||
.video = &csi2_video_ops,
|
||||
.pad = &csi2_pad_ops,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user