diff options
author | Jyri Sarha <jsarha@ti.com> | 2014-04-11 09:25:06 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-04-14 09:42:49 -0400 |
commit | 5c348ba96cdfd2db6a254de259b54cc20fa7d78a (patch) | |
tree | 8da9b39de63d72c50658f2b720bf5058c314f686 /drivers/video | |
parent | a57a22c817fbcb69d41ae517e02933618482f42d (diff) |
OMAPDSS: Change struct reg_field to dispc_reg_field
Avoid colision with regmap's struct reg_field definition by renaming
omapdss's struct reg_field to dispc_reg_field, and moving it inside
dispc.c as that's the only place it is used.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 12 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index b37e3fbf60cc..f18397c33e8f 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
@@ -145,12 +145,18 @@ enum mgr_reg_fields { | |||
145 | DISPC_MGR_FLD_NUM, | 145 | DISPC_MGR_FLD_NUM, |
146 | }; | 146 | }; |
147 | 147 | ||
148 | struct dispc_reg_field { | ||
149 | u16 reg; | ||
150 | u8 high; | ||
151 | u8 low; | ||
152 | }; | ||
153 | |||
148 | static const struct { | 154 | static const struct { |
149 | const char *name; | 155 | const char *name; |
150 | u32 vsync_irq; | 156 | u32 vsync_irq; |
151 | u32 framedone_irq; | 157 | u32 framedone_irq; |
152 | u32 sync_lost_irq; | 158 | u32 sync_lost_irq; |
153 | struct reg_field reg_desc[DISPC_MGR_FLD_NUM]; | 159 | struct dispc_reg_field reg_desc[DISPC_MGR_FLD_NUM]; |
154 | } mgr_desc[] = { | 160 | } mgr_desc[] = { |
155 | [OMAP_DSS_CHANNEL_LCD] = { | 161 | [OMAP_DSS_CHANNEL_LCD] = { |
156 | .name = "LCD", | 162 | .name = "LCD", |
@@ -242,13 +248,13 @@ static inline u32 dispc_read_reg(const u16 idx) | |||
242 | 248 | ||
243 | static u32 mgr_fld_read(enum omap_channel channel, enum mgr_reg_fields regfld) | 249 | static u32 mgr_fld_read(enum omap_channel channel, enum mgr_reg_fields regfld) |
244 | { | 250 | { |
245 | const struct reg_field rfld = mgr_desc[channel].reg_desc[regfld]; | 251 | const struct dispc_reg_field rfld = mgr_desc[channel].reg_desc[regfld]; |
246 | return REG_GET(rfld.reg, rfld.high, rfld.low); | 252 | return REG_GET(rfld.reg, rfld.high, rfld.low); |
247 | } | 253 | } |
248 | 254 | ||
249 | static void mgr_fld_write(enum omap_channel channel, | 255 | static void mgr_fld_write(enum omap_channel channel, |
250 | enum mgr_reg_fields regfld, int val) { | 256 | enum mgr_reg_fields regfld, int val) { |
251 | const struct reg_field rfld = mgr_desc[channel].reg_desc[regfld]; | 257 | const struct dispc_reg_field rfld = mgr_desc[channel].reg_desc[regfld]; |
252 | REG_FLD_MOD(rfld.reg, val, rfld.high, rfld.low); | 258 | REG_FLD_MOD(rfld.reg, val, rfld.high, rfld.low); |
253 | } | 259 | } |
254 | 260 | ||
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index 918fec182424..560078fcb198 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -131,12 +131,6 @@ struct dsi_clock_info { | |||
131 | u16 lp_clk_div; | 131 | u16 lp_clk_div; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | struct reg_field { | ||
135 | u16 reg; | ||
136 | u8 high; | ||
137 | u8 low; | ||
138 | }; | ||
139 | |||
140 | struct dss_lcd_mgr_config { | 134 | struct dss_lcd_mgr_config { |
141 | enum dss_io_pad_mode io_pad_mode; | 135 | enum dss_io_pad_mode io_pad_mode; |
142 | 136 | ||