| .. | .. |
|---|
| 934 | 934 | DRM_DEBUG_DRIVER("\n"); |
|---|
| 935 | 935 | |
|---|
| 936 | 936 | /* Copy the drm display mode in the connector local structure */ |
|---|
| 937 | | - memcpy(&hdmi->mode, mode, sizeof(struct drm_display_mode)); |
|---|
| 937 | + drm_mode_copy(&hdmi->mode, mode); |
|---|
| 938 | 938 | |
|---|
| 939 | 939 | /* Update clock framerate according to the selected mode */ |
|---|
| 940 | 940 | ret = clk_set_rate(hdmi->clk_pix, mode->clock * 1000); |
|---|
| .. | .. |
|---|
| 997 | 997 | |
|---|
| 998 | 998 | #define CLK_TOLERANCE_HZ 50 |
|---|
| 999 | 999 | |
|---|
| 1000 | | -static int sti_hdmi_connector_mode_valid(struct drm_connector *connector, |
|---|
| 1001 | | - struct drm_display_mode *mode) |
|---|
| 1000 | +static enum drm_mode_status |
|---|
| 1001 | +sti_hdmi_connector_mode_valid(struct drm_connector *connector, |
|---|
| 1002 | + struct drm_display_mode *mode) |
|---|
| 1002 | 1003 | { |
|---|
| 1003 | 1004 | int target = mode->clock * 1000; |
|---|
| 1004 | 1005 | int target_min = target - CLK_TOLERANCE_HZ; |
|---|