I was wondering how to clean up intel_virt_detect_pch(), also in a more future compatible manner, and came up with this idea. Is the text size increase in patch 3/3 too bad, that is the question. BR, Jani. Jani Nikula (3): drm/i915: introduce INTEL_PCH_ID() and use it drm/i915/debugfs: print PCH id instead of PCH type in i915 capabilities drm/i915: obliterate PCH types in favour of direct PCH id use drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 46 +++++++---------------- drivers/gpu/drm/i915/i915_drv.h | 73 +++++++++++++++++++++---------------- 3 files changed, 57 insertions(+), 64 deletions(-) -- 2.11.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx