diff options
| author | Luc Van Oostenryck <[email protected]> | 2018-04-24 13:14:18 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-05-15 18:43:51 +0000 |
| commit | ba9ca0886dc0541ac1a716b3cbd43f640a1ce8c4 (patch) | |
| tree | 65e557880b3837735e035448e96980fabd206e32 /drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |
| parent | drm/radeon: fix mode_valid's return type (diff) | |
| download | kernel-ba9ca0886dc0541ac1a716b3cbd43f640a1ce8c4.tar.gz kernel-ba9ca0886dc0541ac1a716b3cbd43f640a1ce8c4.zip | |
drm/admgpu: fix mode_valid's return type
The method struct drm_connector_helper_funcs::mode_valid is defined
as returning an 'enum drm_mode_status' but the driver implementation
for this method uses an 'int' for it.
Fix this by using 'enum drm_mode_status' in the driver too.
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 89b2286a9d6b..6454cc371f57 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c @@ -327,7 +327,7 @@ static int dce_virtual_get_modes(struct drm_connector *connector) return 0; } -static int dce_virtual_mode_valid(struct drm_connector *connector, +static enum drm_mode_status dce_virtual_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { return MODE_OK; |
