summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_bios.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-03-16 11:43:35 +0100
committerJani Nikula <jani.nikula@intel.com>2016-03-17 10:58:57 +0100
commit72341af4285ae1337c0dfdfa3e68318b52b8757c (patch)
tree5426a2d7bb23a8d227ce8f2a86b57fb7534f7300 /drivers/gpu/drm/i915/intel_bios.c
parentdrm/i915: fix sparse warning for using false as NULL (diff)
downloadlinux-72341af4285ae1337c0dfdfa3e68318b52b8757c.tar.xz
linux-72341af4285ae1337c0dfdfa3e68318b52b8757c.zip
drm/i915: hide away VBT private data in a separate header
We've been accumulating code across the driver that depends on the VBT specific structures and defines. The VBT is an uncontrollable beast. Encourage encapsulation of the VBT data by hiding the structures and defines in a private header only to be included from intel_bios.c. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1458125015-7931-7-git-send-email-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_bios.c')
-rw-r--r--drivers/gpu/drm/i915/intel_bios.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
index aa90dc662e7f..083003b015f5 100644
--- a/drivers/gpu/drm/i915/intel_bios.c
+++ b/drivers/gpu/drm/i915/intel_bios.c
@@ -29,7 +29,9 @@
#include <drm/drmP.h>
#include <drm/i915_drm.h>
#include "i915_drv.h"
-#include "intel_bios.h"
+
+#define _INTEL_BIOS_PRIVATE
+#include "intel_vbt_defs.h"
/**
* DOC: Video BIOS Table (VBT)