]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: refactor VBT validation
authorJani Nikula <jani.nikula@intel.com>
Tue, 15 Dec 2015 11:16:15 +0000 (13:16 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2015 09:22:44 +0000 (11:22 +0200)
commit44c0eb4343453c605d1073de1b1d1b3ff71414c7
tree975eb8d41feb9de76526befb6aa9533f537bd084
parentb8aea3107e58a680ecf2f9fb1fc603b6d458d1a5
drm/i915: refactor VBT validation

Make the validation function a boolean operating on a buffer of given
size, removing the extra pointer dances.

Move the OpRegion based VBT validation to intel_opregion_setup(), only
initializing opregion->vbt if it's valid.

v2: move logging about valid VBT to opregion setup too (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450178175-27420-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_opregion.c