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 fbcon_getxy()

Again, fbcon_getxy() is the same as the default implementation since the
softscroll removal in commit 50145474f6ef (fbcon: remove soft scrollback
code). Drop that.

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-43-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
af757ca6 fd1ca819

-25
-25
drivers/video/fbdev/core/fbcon.c
··· 2593 2593 fb_set_cmap(&palette_cmap, info); 2594 2594 } 2595 2595 2596 - static unsigned long fbcon_getxy(struct vc_data *vc, unsigned long pos, 2597 - int *px, int *py) 2598 - { 2599 - unsigned long ret; 2600 - int x, y; 2601 - 2602 - if (pos >= vc->vc_origin && pos < vc->vc_scr_end) { 2603 - unsigned long offset = (pos - vc->vc_origin) / 2; 2604 - 2605 - x = offset % vc->vc_cols; 2606 - y = offset / vc->vc_cols; 2607 - ret = pos + (vc->vc_cols - x) * 2; 2608 - } else { 2609 - /* Should not happen */ 2610 - x = y = 0; 2611 - ret = vc->vc_origin; 2612 - } 2613 - if (px) 2614 - *px = x; 2615 - if (py) 2616 - *py = y; 2617 - return ret; 2618 - } 2619 - 2620 2596 /* As we might be inside of softback, we may work with non-contiguous buffer, 2621 2597 that's why we have to use a separate routine. */ 2622 2598 static void fbcon_invert_region(struct vc_data *vc, u16 * p, int cnt) ··· 3133 3157 .con_font_default = fbcon_set_def_font, 3134 3158 .con_set_palette = fbcon_set_palette, 3135 3159 .con_invert_region = fbcon_invert_region, 3136 - .con_getxy = fbcon_getxy, 3137 3160 .con_resize = fbcon_resize, 3138 3161 .con_debug_enter = fbcon_debug_enter, 3139 3162 .con_debug_leave = fbcon_debug_leave,