diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-02-20 14:48:04 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-02-20 14:48:04 +0200 |
commit | dc537756e1a00d2a2d08cbfb70d937fbd0121c83 (patch) | |
tree | 725b5ae9efe2c9cbd2358b72b24442070f6fe0aa | |
parent | 08ad3d28f84de55e2b157551342d4e394fa3f224 (diff) |
Remove unneeded conditional compilation for old V4L2 API versions
As we include a copy of the V4L2 kernel headers, there's no need for
conditional compilation to support old versions of the API.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | yavta.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -40,10 +40,6 @@ #include <linux/videodev2.h> -#ifndef V4L2_BUF_FLAG_ERROR -#define V4L2_BUF_FLAG_ERROR 0x0040 -#endif - #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) enum buffer_fill_mode @@ -1142,16 +1138,9 @@ static int video_for_each_control(struct device *dev, unsigned int id; int ret; -#ifndef V4L2_CTRL_FLAG_NEXT_CTRL - unsigned int i; - - for (i = V4L2_CID_BASE; i <= V4L2_CID_LASTP1; ++i) { - id = i; -#else id = 0; while (1) { id |= V4L2_CTRL_FLAG_NEXT_CTRL | V4L2_CTRL_FLAG_NEXT_COMPOUND; -#endif ret = query_control(dev, id, &query); if (ret == -EINVAL) |