]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/display: replace IS_GEN() in commented code
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 3 Jun 2021 16:54:28 +0000 (09:54 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 4 Jun 2021 23:50:54 +0000 (16:50 -0700)
Since we are replacing IS_GEN() with GRAPHICS_VER(), make sure we take
care of the comments as well.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210603165428.3625495-8-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_tv.c

index ce73ebdfc66970882d8a504b7e8b720dd6e74170..aa52af7891f0fb8c2447b9dd94d39c1e5869974c 100644 (file)
@@ -1307,7 +1307,7 @@ intel_tv_compute_config(struct intel_encoder *encoder,
         * the active portion. Hence following this formula seems
         * more trouble that it's worth.
         *
-        * if (IS_GEN(dev_priv, 4)) {
+        * if (GRAPHICS_VER(dev_priv) == 4) {
         *      num = cdclk * (tv_mode->oversample >> !tv_mode->progressive);
         *      den = tv_mode->clock;
         * } else {