(c)v4l-helpers: fix broken tests for existence of ioctls.
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 28 Jul 2014 14:15:25 +0000 (16:15 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 28 Jul 2014 14:15:25 +0000 (16:15 +0200)
commitfaaf33fd3b40c81d818c695219fddad31293c05d
tree097a2367c78cd65c742a44b4c2698ad4f9db67ab
parenta028340ce9e0230732f9c301373014ca90144642
(c)v4l-helpers: fix broken tests for existence of ioctls.

Instead of checking for success, check for a result != ENOTTY.

Unfortunately this will fail for kernels older than 3.1 when the
default return code for a non-existing ioctl was EINVAL. All I
can say is: upgrade your kernel, there is a reason EINVAL was a
bad idea...

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp
utils/v4l2-compliance/cv4l-helpers.h
utils/v4l2-compliance/v4l-helpers.h