drm/i915/vbt: switch to kernel unsigned int types
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
This commit is contained in:
@@ -652,7 +652,7 @@ parse_edp(struct drm_i915_private *dev_priv, const struct bdb_header *bdb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bdb->version >= 173) {
|
if (bdb->version >= 173) {
|
||||||
uint8_t vswing;
|
u8 vswing;
|
||||||
|
|
||||||
/* Don't read from VBT if module parameter has valid value*/
|
/* Don't read from VBT if module parameter has valid value*/
|
||||||
if (i915_modparams.edp_vswing) {
|
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
|
* includes MIPI_SEQ_ELEM_END byte, excludes the final MIPI_SEQ_END
|
||||||
* byte.
|
* byte.
|
||||||
*/
|
*/
|
||||||
size_of_sequence = *((const uint32_t *)(data + index));
|
size_of_sequence = *((const u32 *)(data + index));
|
||||||
index += 4;
|
index += 4;
|
||||||
|
|
||||||
seq_end = index + size_of_sequence;
|
seq_end = index + size_of_sequence;
|
||||||
|
@@ -456,7 +456,7 @@ struct bdb_general_definitions {
|
|||||||
* number = (block_size - sizeof(bdb_general_definitions))/
|
* number = (block_size - sizeof(bdb_general_definitions))/
|
||||||
* defs->child_dev_size;
|
* defs->child_dev_size;
|
||||||
*/
|
*/
|
||||||
uint8_t devices[0];
|
u8 devices[0];
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/* Mask for DRRS / Panel Channel / SSC / BLT control bits extraction */
|
/* Mask for DRRS / Panel Channel / SSC / BLT control bits extraction */
|
||||||
|
Reference in New Issue
Block a user