Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82730385 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915/opregion: make VBT pointer a const

parent 65318734
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
};
+1 −1
Original line number Diff line number Diff line
@@ -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)) {