]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/radeon: fix mode_valid's return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 24 Apr 2018 13:15:13 +0000 (15:15 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:43 +0000 (14:20 +0100)
commita450eb99731147b6393e28c99f998bf5e269498f
treea8fcb10e0d25938e67edcc1e9dd479c808be3841
parentceea23b3c1d93cd3612aca7f7569f2e36f7fbe73
drm/radeon: fix mode_valid's return type

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit 7a47f20eb1fb8fa8d7a8fe3a4fd8c721f04c2174 ]

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.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/radeon/radeon_connectors.c