OSDN Git Service

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)
commitdcb58a40caeb77b937d7930eafc5bd22373a754e
tree599aa7f1e8a45608019bcbdf8db2f0914ee3a62e
parente8ef3b4c9dadd4ca4a58282927cd2a9b34804089
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