Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+3 -3
+2 -2
drivers/gpu/drm/i915/intel_bios.c
··· 652 652 } 653 653 654 654 if (bdb->version >= 173) { 655 - uint8_t vswing; 655 + u8 vswing; 656 656 657 657 /* Don't read from VBT if module parameter has valid value*/ 658 658 if (i915_modparams.edp_vswing) { ··· 964 964 * includes MIPI_SEQ_ELEM_END byte, excludes the final MIPI_SEQ_END 965 965 * byte. 966 966 */ 967 - size_of_sequence = *((const uint32_t *)(data + index)); 967 + size_of_sequence = *((const u32 *)(data + index)); 968 968 index += 4; 969 969 970 970 seq_end = index + size_of_sequence;
+1 -1
drivers/gpu/drm/i915/intel_vbt_defs.h
··· 456 456 * number = (block_size - sizeof(bdb_general_definitions))/ 457 457 * defs->child_dev_size; 458 458 */ 459 - uint8_t devices[0]; 459 + u8 devices[0]; 460 460 } __packed; 461 461 462 462 /* Mask for DRRS / Panel Channel / SSC / BLT control bits extraction */