OMAPDSS: DISPC: remove unused functions
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 4 Nov 2011 16:14:11 +0000 (18:14 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:28 +0000 (08:54 +0200)
Remove unused functions:

dispc_mgr_get_default_color
dispc_mgr_get_trans_key
dispc_mgr_trans_key_enabled
dispc_mgr_alpha_fixed_zorder_enabled

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dss.h

index 9c070a22867b8ac4637ce0ec37bffd74e7295ee4..1264c2d1512bb0736bbd541a8aefcbc84a3312a7 100644 (file)
@@ -2169,19 +2169,6 @@ static void dispc_mgr_set_default_color(enum omap_channel channel, u32 color)
        dispc_write_reg(DISPC_DEFAULT_COLOR(channel), color);
 }
 
-u32 dispc_mgr_get_default_color(enum omap_channel channel)
-{
-       u32 l;
-
-       BUG_ON(channel != OMAP_DSS_CHANNEL_DIGIT &&
-               channel != OMAP_DSS_CHANNEL_LCD &&
-               channel != OMAP_DSS_CHANNEL_LCD2);
-
-       l = dispc_read_reg(DISPC_DEFAULT_COLOR(channel));
-
-       return l;
-}
-
 static void dispc_mgr_set_trans_key(enum omap_channel ch,
                enum omap_dss_trans_key_type type,
                u32 trans_key)
@@ -2196,25 +2183,6 @@ static void dispc_mgr_set_trans_key(enum omap_channel ch,
        dispc_write_reg(DISPC_TRANS_COLOR(ch), trans_key);
 }
 
-void dispc_mgr_get_trans_key(enum omap_channel ch,
-               enum omap_dss_trans_key_type *type,
-               u32 *trans_key)
-{
-       if (type) {
-               if (ch == OMAP_DSS_CHANNEL_LCD)
-                       *type = REG_GET(DISPC_CONFIG, 11, 11);
-               else if (ch == OMAP_DSS_CHANNEL_DIGIT)
-                       *type = REG_GET(DISPC_CONFIG, 13, 13);
-               else if (ch == OMAP_DSS_CHANNEL_LCD2)
-                       *type = REG_GET(DISPC_CONFIG2, 11, 11);
-               else
-                       BUG();
-       }
-
-       if (trans_key)
-               *trans_key = dispc_read_reg(DISPC_TRANS_COLOR(ch));
-}
-
 static void dispc_mgr_enable_trans_key(enum omap_channel ch, bool enable)
 {
        if (ch == OMAP_DSS_CHANNEL_LCD)
@@ -2237,39 +2205,6 @@ static void dispc_mgr_enable_alpha_fixed_zorder(enum omap_channel ch,
                REG_FLD_MOD(DISPC_CONFIG, enable, 19, 19);
 }
 
-bool dispc_mgr_alpha_fixed_zorder_enabled(enum omap_channel ch)
-{
-       bool enabled;
-
-       if (!dss_has_feature(FEAT_ALPHA_FIXED_ZORDER))
-               return false;
-
-       if (ch == OMAP_DSS_CHANNEL_LCD)
-               enabled = REG_GET(DISPC_CONFIG, 18, 18);
-       else if (ch == OMAP_DSS_CHANNEL_DIGIT)
-               enabled = REG_GET(DISPC_CONFIG, 19, 19);
-       else
-               BUG();
-
-       return enabled;
-}
-
-bool dispc_mgr_trans_key_enabled(enum omap_channel ch)
-{
-       bool enabled;
-
-       if (ch == OMAP_DSS_CHANNEL_LCD)
-               enabled = REG_GET(DISPC_CONFIG, 10, 10);
-       else if (ch == OMAP_DSS_CHANNEL_DIGIT)
-               enabled = REG_GET(DISPC_CONFIG, 12, 12);
-       else if (ch == OMAP_DSS_CHANNEL_LCD2)
-               enabled = REG_GET(DISPC_CONFIG2, 10, 10);
-       else
-               BUG();
-
-       return enabled;
-}
-
 void dispc_mgr_setup(enum omap_channel channel,
                struct omap_overlay_manager_info *info)
 {
index a8022578c60397579466f91f91e4224cd2c580f3..5ac72433be57c49db56b4aaebbd4115c65dc1aeb 100644 (file)
@@ -415,12 +415,6 @@ void dispc_mgr_enable_stallmode(enum omap_channel channel, bool enable);
 void dispc_mgr_set_tft_data_lines(enum omap_channel channel, u8 data_lines);
 void dispc_mgr_set_lcd_display_type(enum omap_channel channel,
                enum omap_lcd_display_type type);
-u32 dispc_mgr_get_default_color(enum omap_channel channel);
-void dispc_mgr_get_trans_key(enum omap_channel ch,
-               enum omap_dss_trans_key_type *type,
-               u32 *trans_key);
-bool dispc_mgr_trans_key_enabled(enum omap_channel ch);
-bool dispc_mgr_alpha_fixed_zorder_enabled(enum omap_channel ch);
 void dispc_mgr_set_lcd_timings(enum omap_channel channel,
                struct omap_video_timings *timings);
 void dispc_mgr_set_pol_freq(enum omap_channel channel,