drm/i915: abstract PCH type detection from PCH id
authorJani Nikula <jani.nikula@intel.com>
Mon, 5 Feb 2018 17:31:36 +0000 (19:31 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Feb 2018 15:03:11 +0000 (17:03 +0200)
commitda6c10c23a904d8ada1a9bf94ee26422f4cd4be0
tree0f61a71fee589f6e05c657bfe30bebd8c0bf9961
parent015df4f54e2c3891859200bfc052895423bcce8b
drm/i915: abstract PCH type detection from PCH id

Make the logic in intel_detect_pch() easier to follow, and make the PCH
id to type mapping reusable. No functional changes.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/3bd4ffcd284cdbd4e8dc77ab02d97ded422e0c21.1517851783.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c