Skip to content

Commit 6a2a940

Browse files
committed
drm/i915/tv: Fix return value for intel_tv_compute_config()
Ever since commit 204474a ("drm/i915: Pass down rc in intel_encoder->compute_config()") we're supposed to return an errno from .compute_config(). I failed to notice that when pushing the TV encoder fixes which were written before said commmit. Fix up the return value for the error case. Cc: Imre Deak <imre.deak@intel.com> Fixes: 690157f ("drm/i915/tv: Fix >1024 modes on gen3") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190125181931.19482-1-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak <imre.deak@intel.com>
1 parent ad4062d commit 6a2a940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_tv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ intel_tv_compute_config(struct intel_encoder *encoder,
11891189

11901190
if (extra < 0) {
11911191
DRM_DEBUG_KMS("No vertical scaling for >1024 pixel wide modes\n");
1192-
return false;
1192+
return -EINVAL;
11931193
}
11941194

11951195
/* Need to turn off the vertical filter and center the image */

0 commit comments

Comments
 (0)