History

media: v4l2-common.h: put backwards compat defines under #ifndef __KERNEL__

This ensures that they won't be used in kernel code.

Hans Verkuil committed 8 years ago

Commit 177bbc61 parent 5b79da01 file · +15 −13Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/v4l2-common.h+15−13
@@ -79,24 +79,11 @@ · 78 unmodified lines
7979 /* Current composing area plus all padding pixels */
8080 #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103
8181
82−/* Backward compatibility target definitions --- to be removed. */
83−#define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP
84−#define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE
85−#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP
86−#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE
87−#define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS
88−#define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS
89−
9082 /* Selection flags */
9183 #define V4L2_SEL_FLAG_GE (1 << 0)
9284 #define V4L2_SEL_FLAG_LE (1 << 1)
9385 #define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2)
9486
95−/* Backward compatibility flag definitions --- to be removed. */
96−#define V4L2_SUBDEV_SEL_FLAG_SIZE_GE V4L2_SEL_FLAG_GE
97−#define V4L2_SUBDEV_SEL_FLAG_SIZE_LE V4L2_SEL_FLAG_LE
98−#define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG
99−
10087 struct v4l2_edid {
10188 __u32 pad;
10289 __u32 start_block;
@@ -105,4 +92,19 @@ struct v4l2_edid { · 2 unmodified lines
10592 __u8 *edid;
10693 };
10794
95+#ifndef __KERNEL__
96+/* Backward compatibility target definitions --- to be removed. */
97+#define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP
98+#define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE
99+#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP
100+#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE
101+#define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS
102+#define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS
103+
104+/* Backward compatibility flag definitions --- to be removed. */
105+#define V4L2_SUBDEV_SEL_FLAG_SIZE_GE V4L2_SEL_FLAG_GE
106+#define V4L2_SUBDEV_SEL_FLAG_SIZE_LE V4L2_SEL_FLAG_LE
107+#define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG
108+#endif
109+
108110 #endif /* __V4L2_COMMON__ */