Commit 68aeab51 authored by Michael Zoran's avatar Michael Zoran Committed by Greg Kroah-Hartman

staging: bcm2835-camera: Convert struct mmal_buffer_header info fields to u32

The struct mmal_buffer_header has multiple fields used for informational
and debugging purposes.  These are safe to convert to u32.
Signed-off-by: default avatarMichael Zoran <mzoran@crowfest.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3fd4674f
...@@ -255,18 +255,18 @@ struct mmal_driver_buffer { ...@@ -255,18 +255,18 @@ struct mmal_driver_buffer {
/* buffer header */ /* buffer header */
struct mmal_buffer_header { struct mmal_buffer_header {
struct mmal_buffer_header *next; /* next header */ u32 next; /* next header */
void *priv; /* framework private data */ u32 priv; /* framework private data */
u32 cmd; u32 cmd;
void *data; u32 data;
u32 alloc_size; u32 alloc_size;
u32 length; u32 length;
u32 offset; u32 offset;
u32 flags; u32 flags;
s64 pts; s64 pts;
s64 dts; s64 dts;
void *type; u32 type;
void *user_data; u32 user_data;
}; };
struct mmal_buffer_header_type_specific { struct mmal_buffer_header_type_specific {
......
...@@ -536,7 +536,8 @@ buffer_from_host(struct vchiq_mmal_instance *instance, ...@@ -536,7 +536,8 @@ buffer_from_host(struct vchiq_mmal_instance *instance,
/* buffer header */ /* buffer header */
m.u.buffer_from_host.buffer_header.cmd = 0; m.u.buffer_from_host.buffer_header.cmd = 0;
m.u.buffer_from_host.buffer_header.data = buf->buffer; m.u.buffer_from_host.buffer_header.data =
(u32)(unsigned long)buf->buffer;
m.u.buffer_from_host.buffer_header.alloc_size = buf->buffer_size; m.u.buffer_from_host.buffer_header.alloc_size = buf->buffer_size;
m.u.buffer_from_host.buffer_header.length = 0; /* nothing used yet */ m.u.buffer_from_host.buffer_header.length = 0; /* nothing used yet */
m.u.buffer_from_host.buffer_header.offset = 0; /* no offset */ m.u.buffer_from_host.buffer_header.offset = 0; /* no offset */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment