[media] v4l2-ctrls: split try_or_set_ext_ctrls()
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 14 Jun 2011 13:56:42 +0000 (10:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:32 +0000 (17:53 -0300)
commite64025850d11afd0a9ad14d40310bec7ff0f4847
treeda05116714de479c2b8e5406c93fbf4aed562605
parenteb5b16efb26ff5b2d0ba25a114394db69c433f86
[media] v4l2-ctrls: split try_or_set_ext_ctrls()

Split try_or_set_ext_ctrls() into a validate_ctrls() part ('Phase 1')
and merge the second part ('Phase 2') into try_set_ext_ctrls().

This makes a lot more sense and it also does the validation before
trying to try/set the controls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c