[media] m5mols: Refactored controls handling
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 9 Apr 2012 16:51:56 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 17:32:14 +0000 (14:32 -0300)
commit3c5da0baaada8e8c7176a3e310dfdb4362f74d80
tree502bd796f303fcb4a35f0aac2a2be71e81d263ce
parent91f4eb0acb99a34e4b7fe9aee65ff9790be523c0
[media] m5mols: Refactored controls handling

This patch is a prerequisite for the new controls addition. It consolidates
the control handling code, which is moved to m5mols_controls.c and
staticized. The controls initialization is reordered to better reflect
the control clusters and make the diffs smaller when new controls are added.
To make the code easier to follow when more controls is added use separate
set function for each control.

Rewrite the image effect registers handling.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/m5mols/m5mols.h
drivers/media/video/m5mols/m5mols_capture.c
drivers/media/video/m5mols/m5mols_controls.c
drivers/media/video/m5mols/m5mols_core.c