tty: vt, make color_table const
This means all ->con_set_palette have to have the second parameter const too now. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
34902b7f27
commit
8ede5cce4f
@@ -170,7 +170,7 @@ static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx,
|
||||
int height, int width);
|
||||
static int fbcon_switch(struct vc_data *vc);
|
||||
static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch);
|
||||
static int fbcon_set_palette(struct vc_data *vc, unsigned char *table);
|
||||
static int fbcon_set_palette(struct vc_data *vc, const unsigned char *table);
|
||||
static int fbcon_scrolldelta(struct vc_data *vc, int lines);
|
||||
|
||||
/*
|
||||
@@ -2652,7 +2652,7 @@ static struct fb_cmap palette_cmap = {
|
||||
0, 16, palette_red, palette_green, palette_blue, NULL
|
||||
};
|
||||
|
||||
static int fbcon_set_palette(struct vc_data *vc, unsigned char *table)
|
||||
static int fbcon_set_palette(struct vc_data *vc, const unsigned char *table)
|
||||
{
|
||||
struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]];
|
||||
int i, j, k, depth;
|
||||
|
@@ -481,7 +481,7 @@ static int mdacon_switch(struct vc_data *c)
|
||||
return 1; /* redrawing needed */
|
||||
}
|
||||
|
||||
static int mdacon_set_palette(struct vc_data *c, unsigned char *table)
|
||||
static int mdacon_set_palette(struct vc_data *c, const unsigned char *table)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@@ -574,7 +574,7 @@ static int newport_font_set(struct vc_data *vc, struct console_font *font, unsig
|
||||
return newport_set_font(vc->vc_num, font);
|
||||
}
|
||||
|
||||
static int newport_set_palette(struct vc_data *vc, unsigned char *table)
|
||||
static int newport_set_palette(struct vc_data *vc, const unsigned char *table)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@@ -79,7 +79,7 @@ static const char *sticon_startup(void)
|
||||
return "STI console";
|
||||
}
|
||||
|
||||
static int sticon_set_palette(struct vc_data *c, unsigned char *table)
|
||||
static int sticon_set_palette(struct vc_data *c, const unsigned char *table)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@@ -80,7 +80,6 @@ static void vgacon_deinit(struct vc_data *c);
|
||||
static void vgacon_cursor(struct vc_data *c, int mode);
|
||||
static int vgacon_switch(struct vc_data *c);
|
||||
static int vgacon_blank(struct vc_data *c, int blank, int mode_switch);
|
||||
static int vgacon_set_palette(struct vc_data *vc, unsigned char *table);
|
||||
static int vgacon_scrolldelta(struct vc_data *c, int lines);
|
||||
static int vgacon_set_origin(struct vc_data *c);
|
||||
static void vgacon_save_screen(struct vc_data *c);
|
||||
@@ -847,7 +846,7 @@ static int vgacon_switch(struct vc_data *c)
|
||||
return 0; /* Redrawing not needed */
|
||||
}
|
||||
|
||||
static void vga_set_palette(struct vc_data *vc, unsigned char *table)
|
||||
static void vga_set_palette(struct vc_data *vc, const unsigned char *table)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
@@ -860,7 +859,7 @@ static void vga_set_palette(struct vc_data *vc, unsigned char *table)
|
||||
}
|
||||
}
|
||||
|
||||
static int vgacon_set_palette(struct vc_data *vc, unsigned char *table)
|
||||
static int vgacon_set_palette(struct vc_data *vc, const unsigned char *table)
|
||||
{
|
||||
#ifdef CAN_LOAD_PALETTE
|
||||
if (vga_video_type != VIDEO_TYPE_VGAC || vga_palette_blanked
|
||||
|
Reference in New Issue
Block a user