From: Mauro Carvalho Chehab Date: Sat, 4 Jul 2009 11:03:48 +0000 (-0300) Subject: V4L/DVB (12173): mt9v011: properly calculate image resolution registers X-Git-Tag: v2.6.31-rc3~74^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27fe4a30a211a0561c72b0e519997e91fa91c452;p=pandora-kernel.git V4L/DVB (12173): mt9v011: properly calculate image resolution registers Instead of working with a table of precalculated values, fill them with the proper values. Also, adds format functions that allow changing the resolution, by cropping the image to the center of the sensor. While here, move the sensor version check to the probe routine, to indicate to the caller if the sensor is not supported by this driver. Also, fixes a stupid bug where we're using &buffer[] instead of buffer[]. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed