]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm/dp: remove mdss_dp_test_bit_depth_to_bpc()
authorKuogee Hsieh <quic_khsieh@quicinc.com>
Thu, 11 Jan 2024 17:14:15 +0000 (09:14 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 11 Feb 2024 20:38:06 +0000 (22:38 +0200)
mdss_dp_test_bit_depth_to_bpc() can be replace by
mdss_dp_test_bit_depth_to_bpp() / 3. Hence remove it.

Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/574279/
Link: https://lore.kernel.org/r/1704993255-12753-1-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_debug.c
drivers/gpu/drm/msm/dp/dp_link.h

index 6c281dc095b9a0000e6234409b73a95aa0759189..26f800afe5a244b4053db3d358cf3894e2753269 100644 (file)
@@ -101,7 +101,7 @@ static int dp_test_data_show(struct seq_file *m, void *data)
                seq_printf(m, "vdisplay: %d\n",
                                debug->link->test_video.test_v_height);
                seq_printf(m, "bpc: %u\n",
-                               dp_link_bit_depth_to_bpc(bpc));
+                               dp_link_bit_depth_to_bpp(bpc) / 3);
        } else {
                seq_puts(m, "0");
        }
index 9dd4dd926530460d491618231bd5ae2ca64c2bd5..83da170bc56bfe3516b23c90b7db9d75813fcf95 100644 (file)
@@ -112,29 +112,6 @@ static inline u32 dp_link_bit_depth_to_bpp(u32 tbd)
        }
 }
 
-/**
- * dp_test_bit_depth_to_bpc() - convert test bit depth to bpc
- * @tbd: test bit depth
- *
- * Returns the bits per comp (bpc) to be used corresponding to the
- * bit depth value. This function assumes that bit depth has
- * already been validated.
- */
-static inline u32 dp_link_bit_depth_to_bpc(u32 tbd)
-{
-       switch (tbd) {
-       case DP_TEST_BIT_DEPTH_6:
-               return 6;
-       case DP_TEST_BIT_DEPTH_8:
-               return 8;
-       case DP_TEST_BIT_DEPTH_10:
-               return 10;
-       case DP_TEST_BIT_DEPTH_UNKNOWN:
-       default:
-               return 0;
-       }
-}
-
 void dp_link_reset_phy_params_vx_px(struct dp_link *dp_link);
 u32 dp_link_get_test_bits_depth(struct dp_link *dp_link, u32 bpp);
 int dp_link_process_request(struct dp_link *dp_link);