drm/i915: abstract virtual PCH id detection
authorJani Nikula <jani.nikula@intel.com>
Mon, 5 Feb 2018 17:31:37 +0000 (19:31 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Feb 2018 15:03:11 +0000 (17:03 +0200)
commit435ad2c009429157cb65ce8a6221038235cc0501
treef5766312daf401df40b18c0b92f312aebab653ca
parentda6c10c23a904d8ada1a9bf94ee26422f4cd4be0
drm/i915: abstract virtual PCH id detection

Make the code slightly more pleasant to look at. 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/38ee1ac06c6724e888679eb287af36c221bd399b.1517851783.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c