]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Remove dead signal level debugs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 18 Mar 2021 16:10:10 +0000 (18:10 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Mar 2021 16:30:52 +0000 (18:30 +0200)
If we ever get here with bogus signal levels we've messed
up somewhere earlier. Just use MISSING_CASE().

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210318161015.22070-3-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index a6501f2c9e209835e74eeebd5e6b8ed502b79643..d8825ce6ae725f8e143e4326bdf79c8002c4986e 100644 (file)
@@ -3310,8 +3310,7 @@ static u32 snb_cpu_edp_signal_levels(u8 train_set)
        case DP_TRAIN_VOLTAGE_SWING_LEVEL_3 | DP_TRAIN_PRE_EMPH_LEVEL_0:
                return EDP_LINK_TRAIN_800_1200MV_0DB_SNB_B;
        default:
-               DRM_DEBUG_KMS("Unsupported voltage swing/pre-emphasis level:"
-                             "0x%x\n", signal_levels);
+               MISSING_CASE(signal_levels);
                return EDP_LINK_TRAIN_400_600MV_0DB_SNB_B;
        }
 }
@@ -3362,8 +3361,7 @@ static u32 ivb_cpu_edp_signal_levels(u8 train_set)
                return EDP_LINK_TRAIN_800MV_3_5DB_IVB;
 
        default:
-               DRM_DEBUG_KMS("Unsupported voltage swing/pre-emphasis level:"
-                             "0x%x\n", signal_levels);
+               MISSING_CASE(signal_levels);
                return EDP_LINK_TRAIN_500MV_0DB_IVB;
        }
 }