]> git.baikalelectronics.ru Git - kernel.git/commit
[media] ov772x: Select the default format at probe time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 18 Jul 2012 13:58:19 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 15 Aug 2012 20:08:36 +0000 (17:08 -0300)
commit92054d12ccb4dd72ce1c7c14af672b6994cbd72d
treefb38fc309452a0a83b2d1b1ab13df36b9139e82c
parent81f01fe68f6213da0bd765c14cbbccc47043ac6c
[media] ov772x: Select the default format at probe time

The format and window size are only initialized during the first g_fmt
call. This leaves the device in an inconsistent state after
initialization, which will cause problems when implementing pad
operations. Move the format and window size initialization to probe
time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/soc_camera/ov772x.c