drm/i915: Switch to using port stored in intel_encoder
authorPandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>
Tue, 20 Sep 2016 01:24:39 +0000 (18:24 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 21 Sep 2016 16:32:14 +0000 (09:32 -0700)
commitd8dee42a3307901572e0730d9cac02f26635afed
tree3ac706b25a0ee934a80b6cad99784d8e71837b7c
parent03cdc1d4f79573a59392986fb4b50c55d47cff71
drm/i915: Switch to using port stored in intel_encoder

Now that we have the port enum stored in intel_encoder, use that instead of
dereferencing intel_dig_port. Saves us a few locals.

struct intel_encoder variables have been renamed to be consistent and
convey type information.

v2:
Fix incorrect 'enum port' member names - s/attached_port/port

Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Lyude <cpaul@redhat.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1474334681-22690-4-git-send-email-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_audio.c