Add padding to media structures
authorTodor Tomov <ttomov@mm-sol.com>
Tue, 25 Jan 2011 15:46:45 +0000 (17:46 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 7 Feb 2011 14:37:55 +0000 (15:37 +0100)
Add padding to
struct media_entity_link
struct media_entity_pad
struct media_entity
struct media_device

Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
media.h

diff --git a/media.h b/media.h
index f2990720b3a543337a7925bd0185346ffe7ba975..c7d4cdf7370b0d51464e210843afb4bf876b56e8 100644 (file)
--- a/media.h
+++ b/media.h
@@ -27,12 +27,14 @@ struct media_entity_link {
        struct media_entity_pad *sink;
        struct media_entity_link *twin;
        __u32 flags;
        struct media_entity_pad *sink;
        struct media_entity_link *twin;
        __u32 flags;
+       __u32 padding[3];
 };
 
 struct media_entity_pad {
        struct media_entity *entity;
        __u32 index;
        __u32 flags;
 };
 
 struct media_entity_pad {
        struct media_entity *entity;
        __u32 index;
        __u32 flags;
+       __u32 padding[3];
 };
 
 struct media_entity {
 };
 
 struct media_entity {
@@ -44,12 +46,14 @@ struct media_entity {
 
        char devname[32];
        int fd;
 
        char devname[32];
        int fd;
+       __u32 padding[6];
 };
 
 struct media_device {
        int fd;
        struct media_entity *entities;
        unsigned int entities_count;
 };
 
 struct media_device {
        int fd;
        struct media_entity *entities;
        unsigned int entities_count;
+       __u32 padding[6];
 };
 
 struct media_device *media_open(const char *name, int verbose);
 };
 
 struct media_device *media_open(const char *name, int verbose);