[media] omap3isp: preview: Simplify configuration parameters access
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 9 Apr 2012 12:25:34 +0000 (09:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 May 2012 17:06:23 +0000 (14:06 -0300)
commitbac387efbb88cf0e8df6f46a38387897cea464ee
treedf2dc0734bae7a99a7f006a0ddd62f3bc2a57d10
parent9b00184d1ce11fc00412d1c1840fda45e8357d1f
[media] omap3isp: preview: Simplify configuration parameters access

Instead of using a large switch/case statement to return offsets to and
sizes of individual preview engine parameters in the parameters and
configuration structures, store the information in the update_attrs
table and use it at runtime.

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