Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] V4L: imx074: support the new mbus-config subdev ops

Extend the driver to also support [gs]_mbus_config() subdevice video
operations.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Guennadi Liakhovetski and committed by
Mauro Carvalho Chehab
7cd74ffb fd861a07

+12
+12
drivers/media/video/imx074.c
··· 267 267 return 0; 268 268 } 269 269 270 + static int imx074_g_mbus_config(struct v4l2_subdev *sd, 271 + struct v4l2_mbus_config *cfg) 272 + { 273 + cfg->type = V4L2_MBUS_CSI2; 274 + cfg->flags = V4L2_MBUS_CSI2_2_LANE | 275 + V4L2_MBUS_CSI2_CHANNEL_0 | 276 + V4L2_MBUS_CSI2_CONTINUOUS_CLOCK; 277 + 278 + return 0; 279 + } 280 + 270 281 static struct v4l2_subdev_video_ops imx074_subdev_video_ops = { 271 282 .s_stream = imx074_s_stream, 272 283 .s_mbus_fmt = imx074_s_fmt, ··· 286 275 .enum_mbus_fmt = imx074_enum_fmt, 287 276 .g_crop = imx074_g_crop, 288 277 .cropcap = imx074_cropcap, 278 + .g_mbus_config = imx074_g_mbus_config, 289 279 }; 290 280 291 281 static struct v4l2_subdev_core_ops imx074_subdev_core_ops = {