diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 22 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_edid_load.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_probe_helper.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c | 6 |
7 files changed, 28 insertions, 28 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index edee61bccd14..242937c76638 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -1663,7 +1663,7 @@ int drm_mode_getresources(struct drm_device *dev, void *data, | |||
1663 | head) { | 1663 | head) { |
1664 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", | 1664 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", |
1665 | connector->base.id, | 1665 | connector->base.id, |
1666 | drm_get_connector_name(connector)); | 1666 | connector->name); |
1667 | if (put_user(connector->base.id, | 1667 | if (put_user(connector->base.id, |
1668 | connector_id + copied)) { | 1668 | connector_id + copied)) { |
1669 | ret = -EFAULT; | 1669 | ret = -EFAULT; |
@@ -2458,7 +2458,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, | |||
2458 | connector = obj_to_connector(obj); | 2458 | connector = obj_to_connector(obj); |
2459 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", | 2459 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", |
2460 | connector->base.id, | 2460 | connector->base.id, |
2461 | drm_get_connector_name(connector)); | 2461 | connector->name); |
2462 | 2462 | ||
2463 | connector_set[i] = connector; | 2463 | connector_set[i] = connector; |
2464 | } | 2464 | } |
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 54e8fdba02b4..d31659f7dfaa 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -600,11 +600,11 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set) | |||
600 | } | 600 | } |
601 | if (new_crtc) { | 601 | if (new_crtc) { |
602 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] to [CRTC:%d]\n", | 602 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] to [CRTC:%d]\n", |
603 | connector->base.id, drm_get_connector_name(connector), | 603 | connector->base.id, connector->name, |
604 | new_crtc->base.id); | 604 | new_crtc->base.id); |
605 | } else { | 605 | } else { |
606 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] to [NOCRTC]\n", | 606 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] to [NOCRTC]\n", |
607 | connector->base.id, drm_get_connector_name(connector)); | 607 | connector->base.id, connector->name); |
608 | } | 608 | } |
609 | } | 609 | } |
610 | 610 | ||
@@ -630,7 +630,7 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set) | |||
630 | DRM_DEBUG_KMS("Setting connector DPMS state to on\n"); | 630 | DRM_DEBUG_KMS("Setting connector DPMS state to on\n"); |
631 | for (i = 0; i < set->num_connectors; i++) { | 631 | for (i = 0; i < set->num_connectors; i++) { |
632 | DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id, | 632 | DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id, |
633 | drm_get_connector_name(set->connectors[i])); | 633 | set->connectors[i]->name); |
634 | set->connectors[i]->funcs->dpms(set->connectors[i], DRM_MODE_DPMS_ON); | 634 | set->connectors[i]->funcs->dpms(set->connectors[i], DRM_MODE_DPMS_ON); |
635 | } | 635 | } |
636 | } | 636 | } |
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 643f830f3413..085e5550aac5 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -1232,7 +1232,7 @@ drm_do_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter) | |||
1232 | if (i == 4 && print_bad_edid) { | 1232 | if (i == 4 && print_bad_edid) { |
1233 | dev_warn(connector->dev->dev, | 1233 | dev_warn(connector->dev->dev, |
1234 | "%s: Ignoring invalid EDID block %d.\n", | 1234 | "%s: Ignoring invalid EDID block %d.\n", |
1235 | drm_get_connector_name(connector), j); | 1235 | connector->name, j); |
1236 | 1236 | ||
1237 | connector->bad_edid_counter++; | 1237 | connector->bad_edid_counter++; |
1238 | } | 1238 | } |
@@ -1252,7 +1252,7 @@ drm_do_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter) | |||
1252 | carp: | 1252 | carp: |
1253 | if (print_bad_edid) { | 1253 | if (print_bad_edid) { |
1254 | dev_warn(connector->dev->dev, "%s: EDID block %d invalid.\n", | 1254 | dev_warn(connector->dev->dev, "%s: EDID block %d invalid.\n", |
1255 | drm_get_connector_name(connector), j); | 1255 | connector->name, j); |
1256 | } | 1256 | } |
1257 | connector->bad_edid_counter++; | 1257 | connector->bad_edid_counter++; |
1258 | 1258 | ||
@@ -3470,24 +3470,24 @@ static bool drm_assign_hdmi_deep_color_info(struct edid *edid, | |||
3470 | if (hdmi[6] & DRM_EDID_HDMI_DC_30) { | 3470 | if (hdmi[6] & DRM_EDID_HDMI_DC_30) { |
3471 | dc_bpc = 10; | 3471 | dc_bpc = 10; |
3472 | DRM_DEBUG("%s: HDMI sink does deep color 30.\n", | 3472 | DRM_DEBUG("%s: HDMI sink does deep color 30.\n", |
3473 | drm_get_connector_name(connector)); | 3473 | connector->name); |
3474 | } | 3474 | } |
3475 | 3475 | ||
3476 | if (hdmi[6] & DRM_EDID_HDMI_DC_36) { | 3476 | if (hdmi[6] & DRM_EDID_HDMI_DC_36) { |
3477 | dc_bpc = 12; | 3477 | dc_bpc = 12; |
3478 | DRM_DEBUG("%s: HDMI sink does deep color 36.\n", | 3478 | DRM_DEBUG("%s: HDMI sink does deep color 36.\n", |
3479 | drm_get_connector_name(connector)); | 3479 | connector->name); |
3480 | } | 3480 | } |
3481 | 3481 | ||
3482 | if (hdmi[6] & DRM_EDID_HDMI_DC_48) { | 3482 | if (hdmi[6] & DRM_EDID_HDMI_DC_48) { |
3483 | dc_bpc = 16; | 3483 | dc_bpc = 16; |
3484 | DRM_DEBUG("%s: HDMI sink does deep color 48.\n", | 3484 | DRM_DEBUG("%s: HDMI sink does deep color 48.\n", |
3485 | drm_get_connector_name(connector)); | 3485 | connector->name); |
3486 | } | 3486 | } |
3487 | 3487 | ||
3488 | if (dc_bpc > 0) { | 3488 | if (dc_bpc > 0) { |
3489 | DRM_DEBUG("%s: Assigning HDMI sink color depth as %d bpc.\n", | 3489 | DRM_DEBUG("%s: Assigning HDMI sink color depth as %d bpc.\n", |
3490 | drm_get_connector_name(connector), dc_bpc); | 3490 | connector->name, dc_bpc); |
3491 | info->bpc = dc_bpc; | 3491 | info->bpc = dc_bpc; |
3492 | 3492 | ||
3493 | /* | 3493 | /* |
@@ -3501,7 +3501,7 @@ static bool drm_assign_hdmi_deep_color_info(struct edid *edid, | |||
3501 | if (hdmi[6] & DRM_EDID_HDMI_DC_Y444) { | 3501 | if (hdmi[6] & DRM_EDID_HDMI_DC_Y444) { |
3502 | info->color_formats |= DRM_COLOR_FORMAT_YCRCB444; | 3502 | info->color_formats |= DRM_COLOR_FORMAT_YCRCB444; |
3503 | DRM_DEBUG("%s: HDMI sink does YCRCB444 in deep color.\n", | 3503 | DRM_DEBUG("%s: HDMI sink does YCRCB444 in deep color.\n", |
3504 | drm_get_connector_name(connector)); | 3504 | connector->name); |
3505 | } | 3505 | } |
3506 | 3506 | ||
3507 | /* | 3507 | /* |
@@ -3510,14 +3510,14 @@ static bool drm_assign_hdmi_deep_color_info(struct edid *edid, | |||
3510 | */ | 3510 | */ |
3511 | if (!(hdmi[6] & DRM_EDID_HDMI_DC_36)) { | 3511 | if (!(hdmi[6] & DRM_EDID_HDMI_DC_36)) { |
3512 | DRM_DEBUG("%s: HDMI sink should do DC_36, but does not!\n", | 3512 | DRM_DEBUG("%s: HDMI sink should do DC_36, but does not!\n", |
3513 | drm_get_connector_name(connector)); | 3513 | connector->name); |
3514 | } | 3514 | } |
3515 | 3515 | ||
3516 | return true; | 3516 | return true; |
3517 | } | 3517 | } |
3518 | else { | 3518 | else { |
3519 | DRM_DEBUG("%s: No deep color support on this HDMI sink.\n", | 3519 | DRM_DEBUG("%s: No deep color support on this HDMI sink.\n", |
3520 | drm_get_connector_name(connector)); | 3520 | connector->name); |
3521 | } | 3521 | } |
3522 | } | 3522 | } |
3523 | } | 3523 | } |
@@ -3600,7 +3600,7 @@ static void drm_add_display_info(struct edid *edid, | |||
3600 | } | 3600 | } |
3601 | 3601 | ||
3602 | DRM_DEBUG("%s: Assigning EDID-1.4 digital sink color depth as %d bpc.\n", | 3602 | DRM_DEBUG("%s: Assigning EDID-1.4 digital sink color depth as %d bpc.\n", |
3603 | drm_get_connector_name(connector), info->bpc); | 3603 | connector->name, info->bpc); |
3604 | 3604 | ||
3605 | info->color_formats |= DRM_COLOR_FORMAT_RGB444; | 3605 | info->color_formats |= DRM_COLOR_FORMAT_RGB444; |
3606 | if (edid->features & DRM_EDID_FEATURE_RGB_YCRCB444) | 3606 | if (edid->features & DRM_EDID_FEATURE_RGB_YCRCB444) |
@@ -3628,7 +3628,7 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid) | |||
3628 | } | 3628 | } |
3629 | if (!drm_edid_is_valid(edid)) { | 3629 | if (!drm_edid_is_valid(edid)) { |
3630 | dev_warn(connector->dev->dev, "%s: EDID invalid.\n", | 3630 | dev_warn(connector->dev->dev, "%s: EDID invalid.\n", |
3631 | drm_get_connector_name(connector)); | 3631 | connector->name); |
3632 | return 0; | 3632 | return 0; |
3633 | } | 3633 | } |
3634 | 3634 | ||
diff --git a/drivers/gpu/drm/drm_edid_load.c b/drivers/gpu/drm/drm_edid_load.c index 6e09f615ebc9..0a235fe61c9b 100644 --- a/drivers/gpu/drm/drm_edid_load.c +++ b/drivers/gpu/drm/drm_edid_load.c | |||
@@ -261,7 +261,7 @@ out: | |||
261 | 261 | ||
262 | int drm_load_edid_firmware(struct drm_connector *connector) | 262 | int drm_load_edid_firmware(struct drm_connector *connector) |
263 | { | 263 | { |
264 | const char *connector_name = drm_get_connector_name(connector); | 264 | const char *connector_name = connector->name; |
265 | char *edidname = edid_firmware, *last, *colon; | 265 | char *edidname = edid_firmware, *last, *colon; |
266 | int ret; | 266 | int ret; |
267 | struct edid *edid; | 267 | struct edid *edid; |
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index e95ed5805f07..1ddc17464250 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -120,7 +120,7 @@ static int drm_fb_helper_parse_command_line(struct drm_fb_helper *fb_helper) | |||
120 | mode = &fb_helper_conn->cmdline_mode; | 120 | mode = &fb_helper_conn->cmdline_mode; |
121 | 121 | ||
122 | /* do something on return - turn off connector maybe */ | 122 | /* do something on return - turn off connector maybe */ |
123 | if (fb_get_options(drm_get_connector_name(connector), &option)) | 123 | if (fb_get_options(connector->name, &option)) |
124 | continue; | 124 | continue; |
125 | 125 | ||
126 | if (drm_mode_parse_command_line_for_connector(option, | 126 | if (drm_mode_parse_command_line_for_connector(option, |
@@ -142,12 +142,12 @@ static int drm_fb_helper_parse_command_line(struct drm_fb_helper *fb_helper) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | DRM_INFO("forcing %s connector %s\n", | 144 | DRM_INFO("forcing %s connector %s\n", |
145 | drm_get_connector_name(connector), s); | 145 | connector->name, s); |
146 | connector->force = mode->force; | 146 | connector->force = mode->force; |
147 | } | 147 | } |
148 | 148 | ||
149 | DRM_DEBUG_KMS("cmdline mode for connector %s %dx%d@%dHz%s%s%s\n", | 149 | DRM_DEBUG_KMS("cmdline mode for connector %s %dx%d@%dHz%s%s%s\n", |
150 | drm_get_connector_name(connector), | 150 | connector->name, |
151 | mode->xres, mode->yres, | 151 | mode->xres, mode->yres, |
152 | mode->refresh_specified ? mode->refresh : 60, | 152 | mode->refresh_specified ? mode->refresh : 60, |
153 | mode->rb ? " reduced blanking" : "", | 153 | mode->rb ? " reduced blanking" : "", |
diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c index 79f07f2c13d3..d22676b89cbb 100644 --- a/drivers/gpu/drm/drm_probe_helper.c +++ b/drivers/gpu/drm/drm_probe_helper.c | |||
@@ -96,7 +96,7 @@ static int drm_helper_probe_single_connector_modes_merge_bits(struct drm_connect | |||
96 | WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); | 96 | WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); |
97 | 97 | ||
98 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", connector->base.id, | 98 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", connector->base.id, |
99 | drm_get_connector_name(connector)); | 99 | connector->name); |
100 | /* set all modes to the unverified state */ | 100 | /* set all modes to the unverified state */ |
101 | list_for_each_entry(mode, &connector->modes, head) | 101 | list_for_each_entry(mode, &connector->modes, head) |
102 | mode->status = MODE_UNVERIFIED; | 102 | mode->status = MODE_UNVERIFIED; |
@@ -120,7 +120,7 @@ static int drm_helper_probe_single_connector_modes_merge_bits(struct drm_connect | |||
120 | 120 | ||
121 | if (connector->status == connector_status_disconnected) { | 121 | if (connector->status == connector_status_disconnected) { |
122 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] disconnected\n", | 122 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] disconnected\n", |
123 | connector->base.id, drm_get_connector_name(connector)); | 123 | connector->base.id, connector->name); |
124 | drm_mode_connector_update_edid_property(connector, NULL); | 124 | drm_mode_connector_update_edid_property(connector, NULL); |
125 | verbose_prune = false; | 125 | verbose_prune = false; |
126 | goto prune; | 126 | goto prune; |
@@ -168,7 +168,7 @@ prune: | |||
168 | drm_mode_sort(&connector->modes); | 168 | drm_mode_sort(&connector->modes); |
169 | 169 | ||
170 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] probed modes :\n", connector->base.id, | 170 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] probed modes :\n", connector->base.id, |
171 | drm_get_connector_name(connector)); | 171 | connector->name); |
172 | list_for_each_entry(mode, &connector->modes, head) { | 172 | list_for_each_entry(mode, &connector->modes, head) { |
173 | drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); | 173 | drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); |
174 | drm_mode_debug_printmodeline(mode); | 174 | drm_mode_debug_printmodeline(mode); |
@@ -286,7 +286,7 @@ static void output_poll_execute(struct work_struct *work) | |||
286 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] " | 286 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] " |
287 | "status updated from %s to %s\n", | 287 | "status updated from %s to %s\n", |
288 | connector->base.id, | 288 | connector->base.id, |
289 | drm_get_connector_name(connector), | 289 | connector->name, |
290 | old, new); | 290 | old, new); |
291 | 291 | ||
292 | changed = true; | 292 | changed = true; |
@@ -431,7 +431,7 @@ bool drm_helper_hpd_irq_event(struct drm_device *dev) | |||
431 | connector->status = connector->funcs->detect(connector, false); | 431 | connector->status = connector->funcs->detect(connector, false); |
432 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] status updated from %s to %s\n", | 432 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] status updated from %s to %s\n", |
433 | connector->base.id, | 433 | connector->base.id, |
434 | drm_get_connector_name(connector), | 434 | connector->name, |
435 | drm_get_connector_status_name(old_status), | 435 | drm_get_connector_status_name(old_status), |
436 | drm_get_connector_status_name(connector->status)); | 436 | drm_get_connector_status_name(connector->status)); |
437 | if (old_status != connector->status) | 437 | if (old_status != connector->status) |
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index c22c3097c3e8..369b26278e76 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c | |||
@@ -380,9 +380,9 @@ int drm_sysfs_connector_add(struct drm_connector *connector) | |||
380 | 380 | ||
381 | connector->kdev = device_create(drm_class, dev->primary->kdev, | 381 | connector->kdev = device_create(drm_class, dev->primary->kdev, |
382 | 0, connector, "card%d-%s", | 382 | 0, connector, "card%d-%s", |
383 | dev->primary->index, drm_get_connector_name(connector)); | 383 | dev->primary->index, connector->name); |
384 | DRM_DEBUG("adding \"%s\" to sysfs\n", | 384 | DRM_DEBUG("adding \"%s\" to sysfs\n", |
385 | drm_get_connector_name(connector)); | 385 | connector->name); |
386 | 386 | ||
387 | if (IS_ERR(connector->kdev)) { | 387 | if (IS_ERR(connector->kdev)) { |
388 | DRM_ERROR("failed to register connector device: %ld\n", PTR_ERR(connector->kdev)); | 388 | DRM_ERROR("failed to register connector device: %ld\n", PTR_ERR(connector->kdev)); |
@@ -460,7 +460,7 @@ void drm_sysfs_connector_remove(struct drm_connector *connector) | |||
460 | if (!connector->kdev) | 460 | if (!connector->kdev) |
461 | return; | 461 | return; |
462 | DRM_DEBUG("removing \"%s\" from sysfs\n", | 462 | DRM_DEBUG("removing \"%s\" from sysfs\n", |
463 | drm_get_connector_name(connector)); | 463 | connector->name); |
464 | 464 | ||
465 | for (i = 0; i < ARRAY_SIZE(connector_attrs); i++) | 465 | for (i = 0; i < ARRAY_SIZE(connector_attrs); i++) |
466 | device_remove_file(connector->kdev, &connector_attrs[i]); | 466 | device_remove_file(connector->kdev, &connector_attrs[i]); |