]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: bcm2835_camera: Convert control_service field of mmal_msg_header to u32
authorMichael Zoran <mzoran@crowfest.net>
Thu, 9 Mar 2017 05:10:09 +0000 (21:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 12:39:05 +0000 (13:39 +0100)
The camera driver passes messages back and forth between the firmware with
requests and replies.  One of the fields of the message header called
control_service is a pointer so the size changes between 32 bit and 64 bit.

Luckly, the field is not interperated by the driver, so it can be changed
to a u32 which has a fixed size.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h

index 9fa222f65f5b6d04c48b3de0776de8aa00addb42..748f2c824305772499fa6ea51d47ccc5bd7d94dc 100644 (file)
@@ -84,7 +84,7 @@ struct mmal_msg_header {
        u32 type; /** enum mmal_msg_type */
 
        /* Opaque handle to the control service */
-       struct mmal_control_service *control_service;
+       u32 control_service;
 
        struct mmal_msg_context *context; /** a u32 per message context */
        u32 status; /** The status of the vchiq operation */