drm/i915: Standardize port type for DVO encoders
authorPandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>
Tue, 20 Sep 2016 01:24:37 +0000 (18:24 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 21 Sep 2016 16:31:47 +0000 (09:31 -0700)
commit5748be60ea66a7f299fc28bf1ebe3f63a5a266e8
tree3217e72346c61438bb2b35bfa5b323ad8179be15
parentbafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae
drm/i915: Standardize port type for DVO encoders

Changing the return type from 'char' to 'enum port' in
intel_dvo_port_name() makes it easier to later move the port information to
intel_encoder. In addition, the port type conforms to what we have
elsewhere.

Removing the last conditional that handles invalid port because dvo_reg is
intialized to valid values for all DVO devices at definition.

v2: Changed return type, for real (Jani)

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-2-git-send-email-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_dvo.c