]> Git Repo - linux.git/commitdiff
fbdev: omapfb: Remove some deadcode
authorDr. David Alan Gilbert <[email protected]>
Sat, 26 Oct 2024 22:01:33 +0000 (23:01 +0100)
committerHelge Deller <[email protected]>
Thu, 14 Nov 2024 14:30:36 +0000 (15:30 +0100)
commit f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")
took a copy of the omapdrm code into omapfb, however at that point
a couple of functions were already unused at that point.

Remove dispc_mgr_get_clock_div() and dispc_enable_fifomerge() from
the omapfb copy.

Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
drivers/video/fbdev/omap2/omapfb/dss/dss.h

index 5832485ab998c48e698e403c6be73c7d74aa14f3..c3329c8b4c169b09e77fd5c5077fabdc619a137a 100644 (file)
@@ -1230,17 +1230,6 @@ void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high)
                dispc_write_reg(DISPC_OVL_PRELOAD(plane), min(high, 0xfffu));
 }
 
-void dispc_enable_fifomerge(bool enable)
-{
-       if (!dss_has_feature(FEAT_FIFO_MERGE)) {
-               WARN_ON(enable);
-               return;
-       }
-
-       DSSDBG("FIFO merge %s\n", enable ? "enabled" : "disabled");
-       REG_FLD_MOD(DISPC_CONFIG, enable ? 1 : 0, 14, 14);
-}
-
 void dispc_ovl_compute_fifo_thresholds(enum omap_plane plane,
                u32 *fifo_low, u32 *fifo_high, bool use_fifomerge,
                bool manual_update)
@@ -3656,22 +3645,6 @@ void dispc_mgr_set_clock_div(enum omap_channel channel,
        dispc_mgr_set_lcd_divisor(channel, cinfo->lck_div, cinfo->pck_div);
 }
 
-int dispc_mgr_get_clock_div(enum omap_channel channel,
-               struct dispc_clock_info *cinfo)
-{
-       unsigned long fck;
-
-       fck = dispc_fclk_rate();
-
-       cinfo->lck_div = REG_GET(DISPC_DIVISORo(channel), 23, 16);
-       cinfo->pck_div = REG_GET(DISPC_DIVISORo(channel), 7, 0);
-
-       cinfo->lck = fck / cinfo->lck_div;
-       cinfo->pck = cinfo->lck / cinfo->pck_div;
-
-       return 0;
-}
-
 u32 dispc_read_irqstatus(void)
 {
        return dispc_read_reg(DISPC_IRQSTATUS);
index 21cfcbf74a6d9d10fec2fb970570e73ffdbe7b91..a33a43f26829fbcb3f2bc98d84f7ed915353fcd7 100644 (file)
@@ -366,7 +366,6 @@ void dispc_disable_sidle(void);
 
 void dispc_lcd_enable_signal(bool enable);
 void dispc_pck_free_enable(bool enable);
-void dispc_enable_fifomerge(bool enable);
 void dispc_enable_gamma_table(bool enable);
 
 typedef bool (*dispc_div_calc_func)(int lckd, int pckd, unsigned long lck,
@@ -388,8 +387,6 @@ void dispc_ovl_compute_fifo_thresholds(enum omap_plane plane,
 
 void dispc_mgr_set_clock_div(enum omap_channel channel,
                const struct dispc_clock_info *cinfo);
-int dispc_mgr_get_clock_div(enum omap_channel channel,
-               struct dispc_clock_info *cinfo);
 void dispc_set_tv_pclk(unsigned long pclk);
 
 u32 dispc_read_irqstatus(void);
This page took 0.107742 seconds and 4 git commands to generate.