From: Guennadi Liakhovetski Date: Fri, 13 May 2011 16:21:36 +0000 (-0300) Subject: [media] V4L: soc-camera: avoid huge arrays, caused by changed format codes X-Git-Tag: v3.0-rc1~322^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f116d595e9aa7dca5f6507376d6995f217d420;p=pandora-kernel.git [media] V4L: soc-camera: avoid huge arrays, caused by changed format codes Recently mediabus pixel format codes have become a part of the user- space API, at which time their values also have been changed from contiguous numbers, running from 0 to sparse numbers with values around 0x1000, 0x2000, 0x3000... This made them unsuitable for the use as array indices. This patch switches soc-camera internal format look-ups to not depend on values of those macros. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed