Commit 16379ad8 authored by Julia Lawall's avatar Julia Lawall Committed by Tomi Valkeinen

video: constify geode ops structures

These geode ops structures are never modified, so declare them as const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 814740e7
...@@ -208,7 +208,7 @@ static void gx1_set_hw_palette_reg(struct fb_info *info, unsigned regno, ...@@ -208,7 +208,7 @@ static void gx1_set_hw_palette_reg(struct fb_info *info, unsigned regno,
writel(val, par->dc_regs + DC_PAL_DATA); writel(val, par->dc_regs + DC_PAL_DATA);
} }
struct geode_dc_ops gx1_dc_ops = { const struct geode_dc_ops gx1_dc_ops = {
.set_mode = gx1_set_mode, .set_mode = gx1_set_mode,
.set_palette_reg = gx1_set_hw_palette_reg, .set_palette_reg = gx1_set_hw_palette_reg,
}; };
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
unsigned gx1_gx_base(void); unsigned gx1_gx_base(void);
int gx1_frame_buffer_size(void); int gx1_frame_buffer_size(void);
extern struct geode_dc_ops gx1_dc_ops; extern const struct geode_dc_ops gx1_dc_ops;
/* GX1 configuration I/O registers */ /* GX1 configuration I/O registers */
......
...@@ -31,8 +31,8 @@ struct geodefb_par { ...@@ -31,8 +31,8 @@ struct geodefb_par {
int panel_y; int panel_y;
void __iomem *dc_regs; void __iomem *dc_regs;
void __iomem *vid_regs; void __iomem *vid_regs;
struct geode_dc_ops *dc_ops; const struct geode_dc_ops *dc_ops;
struct geode_vid_ops *vid_ops; const struct geode_vid_ops *vid_ops;
}; };
#endif /* !__GEODEFB_H__ */ #endif /* !__GEODEFB_H__ */
...@@ -186,7 +186,7 @@ static int cs5530_blank_display(struct fb_info *info, int blank_mode) ...@@ -186,7 +186,7 @@ static int cs5530_blank_display(struct fb_info *info, int blank_mode)
return 0; return 0;
} }
struct geode_vid_ops cs5530_vid_ops = { const struct geode_vid_ops cs5530_vid_ops = {
.set_dclk = cs5530_set_dclk_frequency, .set_dclk = cs5530_set_dclk_frequency,
.configure_display = cs5530_configure_display, .configure_display = cs5530_configure_display,
.blank_display = cs5530_blank_display, .blank_display = cs5530_blank_display,
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#ifndef __VIDEO_CS5530_H__ #ifndef __VIDEO_CS5530_H__
#define __VIDEO_CS5530_H__ #define __VIDEO_CS5530_H__
extern struct geode_vid_ops cs5530_vid_ops; extern const struct geode_vid_ops cs5530_vid_ops;
/* CS5530 Video device registers */ /* CS5530 Video device registers */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment