]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_drv.h
drm/i915: don't save all the encoder/crtc state in set_config
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jul 2012 14:20:48 +0000 (16:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 06:02:40 +0000 (08:02 +0200)
commit1aa4b628ee63f55db96c7e820257b6e4948abb74
tree3a632ba5e5f59914aab0f3c0ac3b666e9ac1eb62
parent8d3e375e77f09174038b9bfb02b8423cbb187959
drm/i915: don't save all the encoder/crtc state in set_config

We actually only touch the connector -> encoder and encoder -> crtc
linking. So it's enough to just save/restore that.

While at it, also switch to kcalloc to allocate these arrays (omission
in the commit message spotted by Jesse Barnes).

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h