drm/i915: have virtual PCH detection return a PCH id
authorJani Nikula <jani.nikula@intel.com>
Mon, 5 Feb 2018 17:31:38 +0000 (19:31 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Feb 2018 15:03:12 +0000 (17:03 +0200)
commit40ace64b1ece1b8a29f86e6e2bc6fb91f7f0e537
treeadddf2b449661449472af2d489c3c68a829b1742
parent435ad2c009429157cb65ce8a6221038235cc0501
drm/i915: have virtual PCH detection return a PCH id

Simplify intel_virt_detect_pch() by making it return a PCH id rather
than returning the PCH type and setting PCH id for some PCHs. Map the
PCH id to PCH type using the shared routine. This gives us sanity check
on the supported combinations also in the virtualized setting.

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