diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2012-05-04 11:25:12 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-17 06:44:58 -0400 |
commit | c1d2dbd2ad39b7870c741404220fd251dc69c678 (patch) | |
tree | 3ae9f9943d61857dfc385ba71c7634e318dd27e2 | |
parent | 6f789301fa1c1da88eea1f3802d85af5bf66436b (diff) |
drm/radeon: eliminate redundant connector_names table
connector_names table is just a repeat of information that
already exists in drm_connector_enum_list and the same string
can be retrieved using drm_get_connector_name function.
Nuke the redundant table and use the proper function to retrieve
the connector name.
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 0a1d4bd65edc..0c6d63bf6f95 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c | |||
@@ -573,24 +573,6 @@ static const char *encoder_names[37] = { | |||
573 | "INTERNAL_VCE" | 573 | "INTERNAL_VCE" |
574 | }; | 574 | }; |
575 | 575 | ||
576 | static const char *connector_names[15] = { | ||
577 | "Unknown", | ||
578 | "VGA", | ||
579 | "DVI-I", | ||
580 | "DVI-D", | ||
581 | "DVI-A", | ||
582 | "Composite", | ||
583 | "S-video", | ||
584 | "LVDS", | ||
585 | "Component", | ||
586 | "DIN", | ||
587 | "DisplayPort", | ||
588 | "HDMI-A", | ||
589 | "HDMI-B", | ||
590 | "TV", | ||
591 | "eDP", | ||
592 | }; | ||
593 | |||
594 | static const char *hpd_names[6] = { | 576 | static const char *hpd_names[6] = { |
595 | "HPD1", | 577 | "HPD1", |
596 | "HPD2", | 578 | "HPD2", |
@@ -613,7 +595,7 @@ static void radeon_print_display_setup(struct drm_device *dev) | |||
613 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { | 595 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { |
614 | radeon_connector = to_radeon_connector(connector); | 596 | radeon_connector = to_radeon_connector(connector); |
615 | DRM_INFO("Connector %d:\n", i); | 597 | DRM_INFO("Connector %d:\n", i); |
616 | DRM_INFO(" %s\n", connector_names[connector->connector_type]); | 598 | DRM_INFO(" %s\n", drm_get_connector_name(connector)); |
617 | if (radeon_connector->hpd.hpd != RADEON_HPD_NONE) | 599 | if (radeon_connector->hpd.hpd != RADEON_HPD_NONE) |
618 | DRM_INFO(" %s\n", hpd_names[radeon_connector->hpd.hpd]); | 600 | DRM_INFO(" %s\n", hpd_names[radeon_connector->hpd.hpd]); |
619 | if (radeon_connector->ddc_bus) { | 601 | if (radeon_connector->ddc_bus) { |