]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/fbc: unexport the HW level activation functions
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 29 Jan 2016 20:57:39 +0000 (18:57 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 4 Feb 2016 16:17:45 +0000 (14:17 -0200)
commit8c40074cb219f8e5e6122d17fad869bc43c3e9df
treed209bde22cf23036e3e0b74c91967427ee23c512
parent3eb7c38bfed5dc6ea0e24c8bc2fd249760bdde8c
drm/i915/fbc: unexport the HW level activation functions

The recent introduction of a new caller of dev_priv->fbc.deactivate()
is a good example of why we need unexport those functions. Anything
outside intel_fbc.c should only call the functions exported by
intel_fbc.c, so in order to enforce that, kill the function pointers
stored inside dev_priv->fbc and replace them with functions that can't
be called from outside intel_fbc.c.

This should make it much harder for new code to call these functions
from outside intel_fbc.c.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1454101060-23198-2-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_fbc.c