drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_control
authorKeith Packard <keithp@keithp.com>
Wed, 2 Nov 2011 02:34:06 +0000 (19:34 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Nov 2011 04:26:25 +0000 (20:26 -0800)
commit832dd3c17f7829fe8e4c257531d6c5c9e19bd7ac
tree8b1f37958d0e2e285fb792f4796d9b520beea77b
parent4415e63b13c68c2f56d16d400a1ae345f68cf655
drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_control

Every usage of PCH_PP_CONTROL sets the PANEL_UNLOCK_REGS value to
ensure that writes will be respected, move this to a common function
to make the driver cleaner.

No functional changes.

Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_dp.c