[media] omap3isp: preview: Pass a prev_params pointer to configuration functions
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 6 Jul 2012 11:43:27 +0000 (08:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 11 Aug 2012 18:57:55 +0000 (15:57 -0300)
commit6f1dd566fd80c7be597ba541922e0dd570fbc2f4
tree76758ebc693a6e75f43ca2ec6e2f0da8bba47634
parentfbabfa8dde57f7862f2c9b0fd1324f241e2f267a
[media] omap3isp: preview: Pass a prev_params pointer to configuration functions

Instead of using void pointers and offset arithmetics to compute a
pointer to configuration parameters in a generic way, pass the complete
parameters structure to configuration functions and let them access the
parameters they need.

Also modify the enable functions to use a bool enable parameter instead
of a u8.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isppreview.c