drm/i915/opregion: make VBT pointer a const
authorJani Nikula <jani.nikula@intel.com>
Mon, 14 Dec 2015 10:50:52 +0000 (12:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2015 09:28:26 +0000 (11:28 +0200)
Because we can. It's not to be touched so tell the compiler too.

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/4b1872b121fb34a193cff9a5cb4e7c858d4a55aa.1450089383.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_opregion.c

index ef15f1710b503cdeaafedaba1ce5f3a53a384f0b..10e47167c594dcb66d9de17fe197c908c641a91d 100644 (file)
@@ -457,7 +457,7 @@ struct intel_opregion {
        u32 swsci_gbda_sub_functions;
        u32 swsci_sbcb_sub_functions;
        struct opregion_asle *asle;
-       void *vbt;
+       const void *vbt;
        u32 *lid_state;
        struct work_struct asle_work;
 };
index 1c8dfc9fca7de3b38ce14da0540ba99b8edf50d3..e1795de440db5f91122c410c6da5a25ff453f082 100644 (file)
@@ -987,7 +987,7 @@ int intel_opregion_setup(struct drm_device *dev)
                DRM_DEBUG_DRIVER("ASLE extension supported\n");
 
        if (!dmi_check_system(intel_no_opregion_vbt)) {
-               void *vbt = base + OPREGION_VBT_OFFSET;
+               const void *vbt = base + OPREGION_VBT_OFFSET;
                u32 vbt_size = OPREGION_ASLE_EXT_OFFSET - OPREGION_VBT_OFFSET;
 
                if (intel_bios_is_valid_vbt(vbt, vbt_size)) {