]> Pileus Git - ~andy/linux/commit
[media] v4l2-ioctl: simplify debug code
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 14 Mar 2013 10:40:45 +0000 (07:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Mar 2013 11:47:16 +0000 (08:47 -0300)
commit505d04bdc43a6a6c828835e90ab5fcb380d631d5
tree9530f5e321e979ef2ae8c905b852983382033b22
parent977ba3b1b73f24fae2d0c8bd59d7a4696f1e0ccc
[media] v4l2-ioctl: simplify debug code

The core debug code can now be simplified since all the write-only ioctls are
now const and will not modify the data they pass to the drivers.
So instead of logging write-only ioctls before the driver is called this can
now be done afterwards, which is cleaner when it comes to error reporting as
well.
This also fixes a logic error in the debugging code where there was one 'else'
too many.

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