]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: constify validate_vbt in VBT parsing
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 May 2015 12:41:32 +0000 (15:41 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:25:49 +0000 (11:25 +0200)
commit7fabbc0525b3d36c32c690cbae4a9f9c27b5e7b3
tree599aa7f1e8a45608019bcbdf8db2f0914ee3a62e
parentfa56d84f37f7557c187919530d3f3228911d1a71
drm/i915: constify validate_vbt in VBT parsing

Make input and output of validate_vbt const, and fix the fallout. We
shouldn't modify the VBT, so make the compiler help us here.

v2: use pointer arithmetics on void* to simplify (Ville)

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_bios.c