Skip to contentSkip to conversation

am437x: include linux/videodev2.h for expanding BASE_VIDIOC_PRIVATE

PATCH In review Masatake YAMATO 2 participants 2 messages Mar 4, 2015 – Mar 6, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 am437x: include linux/videodev2.h for expanding BASE_VIDIOC_PRIVATE

In am437x-vpfe.h BASE_VIDIOC_PRIVATE is used for making the name of ioctl command(VIDIOC_AM437X_CCDC_CFG). The definition of BASE_VIDIOC_PRIVATE is in linux/videodev2.h. However, linux/videodev2.h is not included in am437x-vpfe.h. As the result an application using has to include both am437x-vpfe.h and linux/videodev2.h.

With this patch, the application can include just am437x-vpfe.h.

---
 include/uapi/linux/am437x-vpfe.h | 2 ++
 1 file changed, 2 insertions(+)
include/uapi/linux/am437x-vpfe.h +2 -0
index 9b03033f..d757743 100644
@@ -21,6 +21,8 @@
 #ifndef AM437X_VPFE_USER_H
 #define AM437X_VPFE_USER_H
 
+#include <linux/videodev2.h>
+
 enum vpfe_ccdc_data_size {
 	VPFE_CCDC_DATA_16BITS = 0,
 	VPFE_CCDC_DATA_15BITS,
Signature · 1 line
2.1.0
Acked-by on v1 1/1
#1 lore raw

Hi Masatake,

Thanks for the patch.

Quoted 10 lines · Masatake YAMATO

In am437x-vpfe.h BASE_VIDIOC_PRIVATE is used for making the name of ioctl command(VIDIOC_AM437X_CCDC_CFG). The definition of BASE_VIDIOC_PRIVATE is in linux/videodev2.h. However, linux/videodev2.h is not included in am437x-vpfe.h. As the result an application using has to include both am437x-vpfe.h and linux/videodev2.h.

With this patch, the application can include just am437x-vpfe.h.

Cheers,
--Prabhakar Lad

Quoted 24 lines
---
 include/uapi/linux/am437x-vpfe.h | 2 ++
 1 file changed, 2 insertions(+)
include/uapi/linux/am437x-vpfe.h +2 -1
index 9b03033f..d757743 100644
@@ -21,6 +21,8 @@
 #ifndef AM437X_VPFE_USER_H
 #define AM437X_VPFE_USER_H
 
+#include <linux/videodev2.h>
+
 enum vpfe_ccdc_data_size {
        VPFE_CCDC_DATA_16BITS = 0,
        VPFE_CCDC_DATA_15BITS,
--

2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html