aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJebaitedneko <Jebaitedneko@gmail.com>2022-05-14 22:28:24 +0530
committerJebaitedneko <Jebaitedneko@gmail.com>2022-05-14 23:32:39 +0530
commit2a5186e0c110d274d673af78eb997e15daaf4263 (patch)
tree3689f3ca1a48e5be4e7e8c0cebde838ddaeda142
parentdacb9ffcac95b4d3d5917fb340f77e0847509a2c (diff)
Revert "dsi-staging: dsi_panel: override dfps via cmdline"
will be reworked This reverts commit 9a08afac331e5b0efb89cbc6c259fc12c6845aef.
-rw-r--r--drivers/gpu/drm/msm/dsi-staging/dsi_panel.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
index ef00985c612c..337b237d6adb 100644
--- a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
+++ b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
@@ -1412,24 +1412,6 @@ static int dsi_panel_parse_dyn_clk_caps(struct dsi_panel *panel)
return 0;
}
-unsigned int __read_mostly min_fps = 0;
-static int __init read_min_fps(char *s)
-{
- if (s)
- min_fps = simple_strtoul(s, NULL, 0);
- return 1;
-}
-__setup("dfps.min_fps=", read_min_fps);
-
-unsigned int __read_mostly max_fps = 0;
-static int __init read_max_fps(char *s)
-{
- if (s)
- max_fps = simple_strtoul(s, NULL, 0);
- return 1;
-}
-__setup("dfps.max_fps=", read_max_fps);
-
static int dsi_panel_parse_dfps_caps(struct dsi_panel *panel)
{
int rc = 0;
@@ -1495,20 +1477,6 @@ static int dsi_panel_parse_dfps_caps(struct dsi_panel *panel)
}
dfps_caps->dfps_support = true;
- if (min_fps || max_fps) {
- pr_info("DEBUG :: %s:%d :: OVERRIDE dfps_caps->dfps_list_len = 2.", __func__, __LINE__);
- dfps_caps->dfps_list_len = 2;
-
- pr_info("DEBUG :: %s:%d :: OVERRIDE dfps_caps->min_refresh_rate = dfps_caps->dfps_list[0] = %lu.", __func__, __LINE__, min_fps);
- dfps_caps->min_refresh_rate = dfps_caps->dfps_list[0] = (u32) min_fps;
-
- pr_info("DEBUG :: %s:%d :: OVERRIDE dfps_caps->max_refresh_rate = dfps_caps->dfps_list[1] = %lu.", __func__, __LINE__, max_fps);
- dfps_caps->max_refresh_rate = dfps_caps->dfps_list[1] = (u32) max_fps;
-
- /* No need to calculate min-max */
- goto error;
- }
-
/* calculate max and min fps */
dfps_caps->max_refresh_rate = dfps_caps->dfps_list[0];
dfps_caps->min_refresh_rate = dfps_caps->dfps_list[0];