]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] uapi/media.h: Use u32 for the number of graph objects
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 17 Dec 2015 11:07:38 +0000 (09:07 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:24 +0000 (12:19 -0200)
While we need to keep a u64 alignment to avoid compat32 issues,
having the number of entities/pads/links/interfaces represented
by an u64 is incoherent with the ID number, with is an u32.

In order to make it coherent, change those quantities to u32.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/uapi/linux/media.h

index cacfceb0d81d8689309b96b6c09069e2d79467c6..5dbb208e5451ac094eaf86654f63e5fb748a29d4 100644 (file)
@@ -330,16 +330,20 @@ struct media_v2_link {
 struct media_v2_topology {
        __u64 topology_version;
 
-       __u64 num_entities;
+       __u32 num_entities;
+       __u32 reserved1;
        __u64 ptr_entities;
 
-       __u64 num_interfaces;
+       __u32 num_interfaces;
+       __u32 reserved2;
        __u64 ptr_interfaces;
 
-       __u64 num_pads;
+       __u32 num_pads;
+       __u32 reserved3;
        __u64 ptr_pads;
 
-       __u64 num_links;
+       __u32 num_links;
+       __u32 reserved4;
        __u64 ptr_links;
 };