]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[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>
Fri, 1 Jul 2011 22:12:44 +0000 (19:12 -0300)
commit0f663cf93abd03e9f460e37753f745fedf20c2d7
tree8f3ed9448dc70bf42b5a4eca37dddce79a73c58c
parent1482dff2d99d291db675dcecaba4cb28efcca191
[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