staging: bcm2835-camera: Move struct vchiq_mmal_rect
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Thu, 10 May 2018 19:42:13 +0000 (12:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2018 10:02:05 +0000 (12:02 +0200)
struct vchiq_mmal_rect is only referenced from mmal-parameters.h, yet
was defined in mmal-vchiq.h.

Move it to avoid having to include multiple headers for no reason.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h

index 3dc50593a665e822914821d538109c81e41a8bb0..184024dfb8b71f08beda279d4f9297e0f875dfa6 100644 (file)
@@ -564,6 +564,14 @@ enum mmal_parameter_displayset {
        MMAL_DISPLAY_SET_ALPHA = 0x400,
 };
 
+/* rectangle, used lots so it gets its own struct */
+struct vchiq_mmal_rect {
+       s32 x;
+       s32 y;
+       s32 width;
+       s32 height;
+};
+
 struct mmal_parameter_displayregion {
        /** Bitfield that indicates which fields are set and should be
         * used. All other fields will maintain their current value.
index 0ab9f660b82270acceb356df8b584a1f92dc7f45..22b839ecd5f02471f3cb2918436529d05d595064 100644 (file)
@@ -32,14 +32,6 @@ enum vchiq_mmal_es_type {
        MMAL_ES_TYPE_SUBPICTURE   /**< Sub-picture elementary stream */
 };
 
-/* rectangle, used lots so it gets its own struct */
-struct vchiq_mmal_rect {
-       s32 x;
-       s32 y;
-       s32 width;
-       s32 height;
-};
-
 struct vchiq_mmal_port_buffer {
        unsigned int num; /* number of buffers */
        u32 size; /* size of buffers */