drm/i915: Make pipe/transcoder offsets not depend on enum values
authorImre Deak <imre.deak@intel.com>
Tue, 20 Nov 2018 09:23:23 +0000 (11:23 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 21 Nov 2018 11:37:59 +0000 (13:37 +0200)
commit931f54920ba82427b2b9371e8d357b15853b1c15
tree0731b6bc9380a3583c5052ca6e5de4340922b65c
parent3c64ea8c98eeb28707ce901c313b6c1e490b27b2
drm/i915: Make pipe/transcoder offsets not depend on enum values

Depending on the transcoder enum values to translate from transcoder
to pipe/transcoder register addresses can easily break if we add a new
transcoder. So remove the dependency by using named initializers.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181120092325.21249-1-imre.deak@intel.com
drivers/gpu/drm/i915/i915_pci.c