[media] m5mols: Fix set_fmt to return proper pixel format code
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 16 Nov 2011 11:19:58 +0000 (08:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 23:03:54 +0000 (21:03 -0200)
commitfbe78ddde1f217044ed854eff92e4d22112871cb
tree9f61f7f531646afe701302b1f5f6569321f1a923
parentf83f71fda27650ae43558633be93652577dbc38c
[media] m5mols: Fix set_fmt to return proper pixel format code

In case pixel format is modified in set_fmt by the driver,
the changes are not propagated back to the caller. Fix this
by adjusting passed  data for TRY and ACTIVE format.

Also remove redundant pixel format code information from
struct m5mols_info, it's already available in 'ffmt' array.
Remove pad number validation in set/get_fmt, this is already
done in the core.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: HeungJun Kim <riverful.kim@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_core.c