.. | .. |
---|
523 | 523 | |
---|
524 | 524 | DRM_DEBUG_DRIVER("\n"); |
---|
525 | 525 | |
---|
526 | | - memcpy(&hda->mode, mode, sizeof(struct drm_display_mode)); |
---|
| 526 | + drm_mode_copy(&hda->mode, mode); |
---|
527 | 527 | |
---|
528 | 528 | if (!hda_get_mode_idx(hda->mode, &mode_idx)) { |
---|
529 | 529 | DRM_ERROR("Undefined mode\n"); |
---|
.. | .. |
---|
600 | 600 | |
---|
601 | 601 | #define CLK_TOLERANCE_HZ 50 |
---|
602 | 602 | |
---|
603 | | -static int sti_hda_connector_mode_valid(struct drm_connector *connector, |
---|
604 | | - struct drm_display_mode *mode) |
---|
| 603 | +static enum drm_mode_status |
---|
| 604 | +sti_hda_connector_mode_valid(struct drm_connector *connector, |
---|
| 605 | + struct drm_display_mode *mode) |
---|
605 | 606 | { |
---|
606 | 607 | int target = mode->clock * 1000; |
---|
607 | 608 | int target_min = target - CLK_TOLERANCE_HZ; |
---|