drm/i915: s/gamma/post_csc_lut/
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2022 15:37:19 +0000 (17:37 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 22 Nov 2022 12:44:47 +0000 (14:44 +0200)
Rename a the LUT state check foo_gamma_precision() functions
to foo_post_csc_lut_precision() to make it more clear what
they really do.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221114153732.11773-8-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_color.c

index 250e83f..e1958a1 100644 (file)
@@ -1792,7 +1792,7 @@ static int icl_color_check(struct intel_crtc_state *crtc_state)
        return 0;
 }
 
-static int i9xx_gamma_precision(const struct intel_crtc_state *crtc_state)
+static int i9xx_post_csc_lut_precision(const struct intel_crtc_state *crtc_state)
 {
        if (!crtc_state->gamma_enable)
                return 0;
@@ -1808,7 +1808,7 @@ static int i9xx_gamma_precision(const struct intel_crtc_state *crtc_state)
        }
 }
 
-static int ilk_gamma_precision(const struct intel_crtc_state *crtc_state)
+static int ilk_post_csc_lut_precision(const struct intel_crtc_state *crtc_state)
 {
        if (!crtc_state->gamma_enable)
                return 0;
@@ -1827,15 +1827,15 @@ static int ilk_gamma_precision(const struct intel_crtc_state *crtc_state)
        }
 }
 
-static int chv_gamma_precision(const struct intel_crtc_state *crtc_state)
+static int chv_post_csc_lut_precision(const struct intel_crtc_state *crtc_state)
 {
        if (crtc_state->cgm_mode & CGM_PIPE_MODE_GAMMA)
                return 10;
        else
-               return i9xx_gamma_precision(crtc_state);
+               return i9xx_post_csc_lut_precision(crtc_state);
 }
 
-static int glk_gamma_precision(const struct intel_crtc_state *crtc_state)
+static int glk_post_csc_lut_precision(const struct intel_crtc_state *crtc_state)
 {
        if (!crtc_state->gamma_enable)
                return 0;
@@ -1851,7 +1851,7 @@ static int glk_gamma_precision(const struct intel_crtc_state *crtc_state)
        }
 }
 
-static int icl_gamma_precision(const struct intel_crtc_state *crtc_state)
+static int icl_post_csc_lut_precision(const struct intel_crtc_state *crtc_state)
 {
        if ((crtc_state->gamma_mode & POST_CSC_GAMMA_ENABLE) == 0)
                return 0;
@@ -1876,16 +1876,16 @@ int intel_color_get_gamma_bit_precision(const struct intel_crtc_state *crtc_stat
 
        if (HAS_GMCH(i915)) {
                if (IS_CHERRYVIEW(i915))
-                       return chv_gamma_precision(crtc_state);
+                       return chv_post_csc_lut_precision(crtc_state);
                else
-                       return i9xx_gamma_precision(crtc_state);
+                       return i9xx_post_csc_lut_precision(crtc_state);
        } else {
                if (DISPLAY_VER(i915) >= 11)
-                       return icl_gamma_precision(crtc_state);
+                       return icl_post_csc_lut_precision(crtc_state);
                else if (DISPLAY_VER(i915) == 10)
-                       return glk_gamma_precision(crtc_state);
+                       return glk_post_csc_lut_precision(crtc_state);
                else if (IS_IRONLAKE(i915))
-                       return ilk_gamma_precision(crtc_state);
+                       return ilk_post_csc_lut_precision(crtc_state);
        }
 
        return 0;