[media] V4L: mt9m111: rewrite set_pixfmt
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 12 Jul 2011 15:39:05 +0000 (12:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:56:10 +0000 (17:56 -0300)
commit7c58e7d06cf2566537714257094b852de6c294c3
tree15b3eb8d97465cb729a916c68c4bdb63c726695f
parent9c56cbf9aadff79c25ccd424ae422971efd5c1a4
[media] V4L: mt9m111: rewrite set_pixfmt

added new bit offset defines,
more supported BE colour formats
and also support BGR565 swapped pixel formats

removed pixfmt helper functions and option flags
setting the configuration register directly in set_pixfmt

added reg_mask function

reg_mask is basically the same as clearing & setting registers,
but it is more convenient and faster (saves one rw cycle).

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Philipp Wiesner <p.wiesner@phytec.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
[g.liakhovetski@gmx.de: remove Bayer swap, forward-port, rename macros]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9m111.c