[PATCH] video: mx2_camera: Fix build error due to the lack of 'pixfmt' definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit d509835 ([media] media: mx2_camera: Fix mbus format handling) caused
the following build error:

drivers/media/video/mx2_camera.c:1032:42: error: 'pixfmt' undeclared (first use in this function)
make[4]: *** [drivers/media/video/mx2_camera.o] Error 1

Fix this build error by providing a 'pixfmt' definition.

Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
---
 drivers/media/video/mx2_camera.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c
index ded26b7..ef72733 100644
--- a/drivers/media/video/mx2_camera.c
+++ b/drivers/media/video/mx2_camera.c
@@ -989,6 +989,7 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd)
 	int ret;
 	int bytesperline;
 	u32 csicr1 = pcdev->csicr1;
+	u32 pixfmt = icd->current_fmt->host_fmt->fourcc;
 
 	ret = v4l2_subdev_call(sd, video, g_mbus_config, &cfg);
 	if (!ret) {
-- 
1.7.1


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux