diff options
author | 2013-11-28 15:29:18 +0000 | |
---|---|---|
committer | 2013-11-28 16:49:33 +0100 | |
commit | c19de8eb67f745a7b16a7587ed002e6916ab2a5d (patch) | |
tree | fb9f3557cd6dbe8a948cf4273aa9f6c844e275c9 /drivers/gpu/drm/i915/intel_hdmi.c | |
parent | drm/i915: add intel_display_power_enabled_sw() for use in atomic ctx (diff) | |
download | linux-c19de8eb67f745a7b16a7587ed002e6916ab2a5d.tar.gz linux-c19de8eb67f745a7b16a7587ed002e6916ab2a5d.tar.bz2 linux-c19de8eb67f745a7b16a7587ed002e6916ab2a5d.zip |
drm/i915: Return a drm_mode_status enum in the mode_valid vfuncs
We had some mode_valid() vfuncs returning an int, others the enum. Let's
use the latter everywhere.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_hdmi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index d0c81b170149..6a6ad0c78dc7 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c @@ -853,8 +853,9 @@ static int hdmi_portclock_limit(struct intel_hdmi *hdmi) return 225000; } -static int intel_hdmi_mode_valid(struct drm_connector *connector, - struct drm_display_mode *mode) +static enum drm_mode_status +intel_hdmi_mode_valid(struct drm_connector *connector, + struct drm_display_mode *mode) { if (mode->clock > hdmi_portclock_limit(intel_attached_hdmi(connector))) return MODE_CLOCK_HIGH; |