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.

fbcon: remove consw::con_screen_pos()

fbcon_screen_pos() performs the same as the default implementation. The
only difference in the default implementation is that is considers both
vc->vc_origin and vc->vc_visible_origin. But given fbcon's softscroll
code was already removed in commit 50145474f6ef (fbcon: remove soft
scrollback code), both are always the same.

So remove fbcon_screen_pos() too.

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

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
d62808ba 42822fab

-6
-6
drivers/video/fbdev/core/fbcon.c
··· 2593 2593 fb_set_cmap(&palette_cmap, info); 2594 2594 } 2595 2595 2596 - static u16 *fbcon_screen_pos(const struct vc_data *vc, int offset) 2597 - { 2598 - return (u16 *) (vc->vc_origin + offset); 2599 - } 2600 - 2601 2596 static unsigned long fbcon_getxy(struct vc_data *vc, unsigned long pos, 2602 2597 int *px, int *py) 2603 2598 { ··· 3157 3162 .con_font_default = fbcon_set_def_font, 3158 3163 .con_set_palette = fbcon_set_palette, 3159 3164 .con_invert_region = fbcon_invert_region, 3160 - .con_screen_pos = fbcon_screen_pos, 3161 3165 .con_getxy = fbcon_getxy, 3162 3166 .con_resize = fbcon_resize, 3163 3167 .con_debug_enter = fbcon_debug_enter,