media: mt9m111: set initial frame size other than 0x0
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 15 Jan 2019 14:05:41 +0000 (12:05 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2019 20:33:14 +0000 (22:33 +0200)
commit7aaa76e8a6abc787ffd8f40f39bf406762090641
tree1862bb6d620aa940d8fb5fc62a8f75eb7fe6293b
parentfd400e96c599940e4bbbda29d436efc4d4e035c3
media: mt9m111: set initial frame size other than 0x0

[ Upstream commit 29856308137de1c21eda89411695f4fc6e9780ff ]

This driver sets initial frame width and height to 0x0, which is invalid.
So set it to selection rectangle bounds instead.

This is detected by v4l2-compliance detected.

Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/mt9m111.c