aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dss.c
diff options
context:
space:
mode:
authorTaneja, Archit <archit@ti.com>2011-03-15 00:28:21 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-15 02:23:51 -0400
commit235e7dba0264d4c6e56ee217fc7ef6d80da5eb67 (patch)
tree77e6e5f82a98f08d529212656104682b024fbbc6 /drivers/video/omap2/dss/dss.c
parentba02fa37de80bea10d706f39f076dd848348320a (diff)
OMAP2PLUS: DSS2: FEATURES: Fix usage of dss_reg_field and dss_clk_source_name
The structures dss_reg_field and dss_clk_source_name have enum members which specify the register field and the clock source respectively. These members are not used to choose the correct result in the corresponding feature functions. Remove these members and change the features array declaration to incorporate these enums. The structure dss_clk_source_name without the enum member is just a pointer to an string. Remove the structure and use a character pointer directly. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss.c')
-rw-r--r--drivers/video/omap2/dss/dss.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c
index aed9345e8ada..06ad31290853 100644
--- a/drivers/video/omap2/dss/dss.c
+++ b/drivers/video/omap2/dss/dss.c
@@ -82,10 +82,10 @@ static struct {
82 u32 ctx[DSS_SZ_REGS / sizeof(u32)]; 82 u32 ctx[DSS_SZ_REGS / sizeof(u32)];
83} dss; 83} dss;
84 84
85static const struct dss_clk_source_name dss_generic_clk_source_names[] = { 85static const char * const dss_generic_clk_source_names[] = {
86 { DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC, "DSI_PLL_HSDIV_DISPC" }, 86 [DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC] = "DSI_PLL_HSDIV_DISPC",
87 { DSS_CLK_SRC_DSI_PLL_HSDIV_DSI, "DSI_PLL_HSDIV_DSI" }, 87 [DSS_CLK_SRC_DSI_PLL_HSDIV_DSI] = "DSI_PLL_HSDIV_DSI",
88 { DSS_CLK_SRC_FCK, "DSS_FCK" }, 88 [DSS_CLK_SRC_FCK] = "DSS_FCK",
89}; 89};
90 90
91static void dss_clk_enable_all_no_ctx(void); 91static void dss_clk_enable_all_no_ctx(void);
@@ -232,7 +232,7 @@ void dss_sdi_disable(void)
232 232
233const char *dss_get_generic_clk_source_name(enum dss_clk_source clk_src) 233const char *dss_get_generic_clk_source_name(enum dss_clk_source clk_src)
234{ 234{
235 return dss_generic_clk_source_names[clk_src].clksrc_name; 235 return dss_generic_clk_source_names[clk_src];
236} 236}
237 237
238void dss_dump_clocks(struct seq_file *s) 238void dss_dump_clocks(struct seq_file *s)