From: Laurent Pinchart Date: Wed, 1 Sep 2010 15:58:22 +0000 (-0300) Subject: [media] v4l: Group media bus pixel codes by types and sort them alphabetically X-Git-Tag: v2.6.39-rc1~86^2~169 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dacdde78b39e49edf2f7af85be4b613978280b26;p=pandora-kernel.git [media] v4l: Group media bus pixel codes by types and sort them alphabetically Adding new pixel codes at the end of the enumeration will soon create a mess, so group the pixel codes by type and sort them by bus_width, bits per component, samples per pixel and order of subsamples. As the codes are part of the kernel ABI their value can't change when a new code is inserted in the enumeration, so they are given an explicit numerical value. When inserting a new pixel code developers must use and update the next free value. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed