drm/i915/bios: add missing __packed to structs used for reading vbt
authorJani Nikula <jani.nikula@intel.com>
Mon, 15 Sep 2014 13:59:28 +0000 (16:59 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:43:14 +0000 (14:43 +0200)
This does not seem to make a difference for the structs in question, but
document the intent.

v2: also pack union child_device_config (Daniel)

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_bios.h

index 905999bee2ac5ee7f7b550f1c3f4fa043f422a97..7603765c91fc0fd3f664675d49e885161a1f7eba 100644 (file)
@@ -46,7 +46,7 @@ struct bdb_header {
        u16 version;                    /**< decimal */
        u16 header_size;                /**< in bytes */
        u16 bdb_size;                   /**< in bytes */
-};
+} __packed;
 
 /* strictly speaking, this is a "skip" block, but it has interesting info */
 struct vbios_data {
@@ -252,7 +252,7 @@ union child_device_config {
        /* This one should also be safe to use anywhere, even without version
         * checks. */
        struct common_child_dev_config common;
-};
+} __packed;
 
 struct bdb_general_definitions {
        /* DDC GPIO */
@@ -888,12 +888,12 @@ struct mipi_pps_data {
        u16 bl_disable_delay;
        u16 panel_off_delay;
        u16 panel_power_cycle_delay;
-};
+} __packed;
 
 struct bdb_mipi_config {
        struct mipi_config config[MAX_MIPI_CONFIGURATIONS];
        struct mipi_pps_data pps[MAX_MIPI_CONFIGURATIONS];
-};
+} __packed;
 
 /* Block 53 contains MIPI sequences as needed by the panel
  * for enabling it. This block can be variable in size and
@@ -902,7 +902,7 @@ struct bdb_mipi_config {
 struct bdb_mipi_sequence {
        u8 version;
        u8 data[0];
-};
+} __packed;
 
 /* MIPI Sequnece Block definitions */
 enum mipi_seq {