drm/i915: refactor sink bpp clamping
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 2 Jun 2013 11:26:23 +0000 (13:26 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Jun 2013 11:52:17 +0000 (13:52 +0200)
commit050f7aeb129c1b9fb63dd523ca9bc1101bbae6cc
tree46df3befd4af33022915c9cd5a4d90cb5ebedd9f
parentd7697eea3eec74c561d12887d892c53ac4380c00
drm/i915: refactor sink bpp clamping

As a prep work to fix it up:
- Use intel_connector instead of drm_connector to avoid too much
  upcasting in the bugfix patch.
- Extract the connector bpp clamping from the loop-over-connectors
  logic.
- Bikeshed function names (to make it clearer that
  acompute_baseline_pipe_bpp runs in the compute stage of the modeset
  sequence) and add a comment to make it clearer what it does.

No functional change in this patch.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c