drm/i915/vbt: switch to kernel unsigned int types
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 Jun 2018 09:19:29 +0000 (12:19 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 18 Jun 2018 11:44:52 +0000 (14:44 +0300)
We have fairly mixed uintN_t vs. uN usage throughout the driver, but try
to stick to kernel types at least where it's more prevalent.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ed5de29c280797b20eb625d52592dcbba8326684.1528794959.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_vbt_defs.h

index 18b9e04441169daa43175f5522d3a3ada1663691..62a53eb89b6bd3e5d7887a907cbb3ea8cd15cf3f 100644 (file)
@@ -652,7 +652,7 @@ parse_edp(struct drm_i915_private *dev_priv, const struct bdb_header *bdb)
        }
 
        if (bdb->version >= 173) {
-               uint8_t vswing;
+               u8 vswing;
 
                /* Don't read from VBT if module parameter has valid value*/
                if (i915_modparams.edp_vswing) {
@@ -964,7 +964,7 @@ static int goto_next_sequence_v3(const u8 *data, int index, int total)
         * includes MIPI_SEQ_ELEM_END byte, excludes the final MIPI_SEQ_END
         * byte.
         */
-       size_of_sequence = *((const uint32_t *)(data + index));
+       size_of_sequence = *((const u32 *)(data + index));
        index += 4;
 
        seq_end = index + size_of_sequence;
index c614c9f3f28bcd89e3b576704ad0727599974b8d..bba98cf83cbd9d1c0348e42acb5f8fba98a106dc 100644 (file)
@@ -456,7 +456,7 @@ struct bdb_general_definitions {
         * number = (block_size - sizeof(bdb_general_definitions))/
         *           defs->child_dev_size;
         */
-       uint8_t devices[0];
+       u8 devices[0];
 } __packed;
 
 /* Mask for DRRS / Panel Channel / SSC / BLT control bits extraction */