drm/radeon: 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. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4a8f264a8a
commit
7a47f20eb1
|
@ -852,7 +852,7 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int radeon_lvds_mode_valid(struct drm_connector *connector,
|
static enum drm_mode_status radeon_lvds_mode_valid(struct drm_connector *connector,
|
||||||
struct drm_display_mode *mode)
|
struct drm_display_mode *mode)
|
||||||
{
|
{
|
||||||
struct drm_encoder *encoder = radeon_best_single_encoder(connector);
|
struct drm_encoder *encoder = radeon_best_single_encoder(connector);
|
||||||
|
@ -1012,7 +1012,7 @@ static int radeon_vga_get_modes(struct drm_connector *connector)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int radeon_vga_mode_valid(struct drm_connector *connector,
|
static enum drm_mode_status radeon_vga_mode_valid(struct drm_connector *connector,
|
||||||
struct drm_display_mode *mode)
|
struct drm_display_mode *mode)
|
||||||
{
|
{
|
||||||
struct drm_device *dev = connector->dev;
|
struct drm_device *dev = connector->dev;
|
||||||
|
@ -1156,7 +1156,7 @@ static int radeon_tv_get_modes(struct drm_connector *connector)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int radeon_tv_mode_valid(struct drm_connector *connector,
|
static enum drm_mode_status radeon_tv_mode_valid(struct drm_connector *connector,
|
||||||
struct drm_display_mode *mode)
|
struct drm_display_mode *mode)
|
||||||
{
|
{
|
||||||
if ((mode->hdisplay > 1024) || (mode->vdisplay > 768))
|
if ((mode->hdisplay > 1024) || (mode->vdisplay > 768))
|
||||||
|
@ -1498,7 +1498,7 @@ static void radeon_dvi_force(struct drm_connector *connector)
|
||||||
radeon_connector->use_digital = true;
|
radeon_connector->use_digital = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int radeon_dvi_mode_valid(struct drm_connector *connector,
|
static enum drm_mode_status radeon_dvi_mode_valid(struct drm_connector *connector,
|
||||||
struct drm_display_mode *mode)
|
struct drm_display_mode *mode)
|
||||||
{
|
{
|
||||||
struct drm_device *dev = connector->dev;
|
struct drm_device *dev = connector->dev;
|
||||||
|
@ -1800,7 +1800,7 @@ out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int radeon_dp_mode_valid(struct drm_connector *connector,
|
static enum drm_mode_status radeon_dp_mode_valid(struct drm_connector *connector,
|
||||||
struct drm_display_mode *mode)
|
struct drm_display_mode *mode)
|
||||||
{
|
{
|
||||||
struct drm_device *dev = connector->dev;
|
struct drm_device *dev = connector->dev;
|
||||||
|
|
Loading…
Reference in a new issue