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

video: fbdev: atari: Fix inverse handling

Currently, the "inverse" option does not do anything, as it just sets a
flag, which is further unused.

Fix this by calling fb_invert_cmaps() instead, like other drivers do.
As this only affects the console colormap, this does not affect X.
Update the documentation to match the actual behavior.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Geert Uytterhoeven and committed by
Helge Deller
c7ef5e28 211f88e8

+3 -5
+2 -2
Documentation/m68k/kernel-options.rst
··· 367 367 4.1.2) inverse 368 368 -------------- 369 369 370 - Invert the display. This affects both, text (consoles) and graphics 371 - (X) display. Usually, the background is chosen to be black. With this 370 + Invert the display. This affects only text consoles. 371 + Usually, the background is chosen to be black. With this 372 372 option, you can make the background white. 373 373 374 374 4.1.3) font
+1 -3
drivers/video/fbdev/atafb.c
··· 236 236 #endif /* ATAFB_EXT */ 237 237 238 238 239 - static int inverse; 240 - 241 239 /* 242 240 * struct fb_ops { 243 241 * * open/release and usage marking ··· 2969 2971 default_par = temp; 2970 2972 mode_option = this_opt; 2971 2973 } else if (!strcmp(this_opt, "inverse")) 2972 - inverse = 1; 2974 + fb_invert_cmaps(); 2973 2975 else if (!strncmp(this_opt, "hwscroll_", 9)) { 2974 2976 hwscroll = simple_strtoul(this_opt + 9, NULL, 10); 2975 2977 if (hwscroll < 0)