Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: vt: make consw::con_font_default()'s name const

It's a name after all and that is not supposed to be changed. So make it
const to make this obvious.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-parisc@vger.kernel.org
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-38-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
4f596170 fd0f631f

+7 -4
+2 -1
drivers/video/console/newport_con.c
··· 564 564 return 0; 565 565 } 566 566 567 - static int newport_font_default(struct vc_data *vc, struct console_font *op, char *name) 567 + static int newport_font_default(struct vc_data *vc, struct console_font *op, 568 + const char *name) 568 569 { 569 570 return newport_set_def_font(vc->vc_num, op); 570 571 }
+2 -1
drivers/video/console/sticon.c
··· 246 246 return 0; 247 247 } 248 248 249 - static int sticon_font_default(struct vc_data *vc, struct console_font *op, char *name) 249 + static int sticon_font_default(struct vc_data *vc, struct console_font *op, 250 + const char *name) 250 251 { 251 252 sticon_set_def_font(vc->vc_num); 252 253
+2 -1
drivers/video/fbdev/core/fbcon.c
··· 2533 2533 return fbcon_do_set_font(vc, font->width, font->height, charcount, new_data, 1); 2534 2534 } 2535 2535 2536 - static int fbcon_set_def_font(struct vc_data *vc, struct console_font *font, char *name) 2536 + static int fbcon_set_def_font(struct vc_data *vc, struct console_font *font, 2537 + const char *name) 2537 2538 { 2538 2539 struct fb_info *info = fbcon_info_from_console(vc->vc_num); 2539 2540 const struct font_desc *f;
+1 -1
include/linux/console.h
··· 81 81 int (*con_font_get)(struct vc_data *vc, struct console_font *font, 82 82 unsigned int vpitch); 83 83 int (*con_font_default)(struct vc_data *vc, 84 - struct console_font *font, char *name); 84 + struct console_font *font, const char *name); 85 85 int (*con_resize)(struct vc_data *vc, unsigned int width, 86 86 unsigned int height, bool from_user); 87 87 void (*con_set_palette)(struct vc_data *vc,