]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_display.c
drm/i915: convert pointless error checks in set_config to BUGs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jul 2012 14:09:09 +0000 (16:09 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 06:02:17 +0000 (08:02 +0200)
commit8d3e375e77f09174038b9bfb02b8423cbb187959
tree2fbfa3138a57c4fd4872e2b669df64f5702f24e7
parent835c5873d6e38cb317091ace7c1f3c40cc0607ce
drm/i915: convert pointless error checks in set_config to BUGs

Because they all are, the ioctl command never calls us with any of
these violated. Also drop a equally pointless empty debug message (and
also in set_cursor, while we're at it).

With all these changes, intel_crtc_set_config is neatly condensed down
to it's essence, the actual modeset code (or fb update calling code)

v2: The fb helper code is actually stretching ->set_config semantics a bit,
it calls it with set->mode == NULL but set->fb != NULL.

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