[media] v4l2-ctrls: simplify error_idx handling
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 7 Jun 2011 07:40:04 +0000 (04:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:16 +0000 (17:53 -0300)
commit37cd3b73683f15f1b6313d0de476726aa0942a75
treec947c202742fb4e86434e3231f12b929120e5c88
parent54c911eb919b44b178bda67564f274197872bd04
[media] v4l2-ctrls: simplify error_idx handling

The lower-level prepare functions just set error_idx for each control that
might have an error. The high-level functions will override this with
cs->count in the get and set cases. Only try will keep the error_idx.

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