Skip to contentSkip to conversation

fbcon: Remove struct fbcon_display.inverse

PATCH In review Thomas Zimmermann 2 participants 3 messages Feb 9 – Feb 10

Subsystems (4)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 fbcon: Remove struct fbcon_display.inverse

The field inverse in struct fbcon_display is unused. Remove it.

The field apparently never did anything. Commit c7ef5e285c84 ("video:
fbdev: atari: Fix inverse handling") converted its final user to call fb_invert_cmaps() instead.

Fixes c7ef5e285c84 ("video: fbdev: atari: Fix inverse handling")
Cc Geert Uytterhoeven <[email protected]>
Cc Helge Deller <[email protected]>
Cc <[email protected]> # v6.0+
---
 drivers/video/fbdev/core/fbcon.h | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/core/fbcon.h +0 -1
index 1cd10a7faab0..fca14e9b729b 100644
@@ -30,7 +30,6 @@ struct fbcon_display {
 #ifdef CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION
     u_short scrollmode;             /* Scroll Method, use fb_scrollmode() */
 #endif
-    u_short inverse;                /* != 0 text black on white as default */
     short yscroll;                  /* Hardware scrolling */
     int vrows;                      /* number of virtual rows */
     int cursor_shape;
Signature · 1 line
2.52.0
maintainer
#1 lore raw
Quoted 1 line · Thomas Zimmermann

The field inverse in struct fbcon_display is unused. Remove it.

Indeed, seems to be unused.

Quoted 3 lines

The field apparently never did anything. Commit c7ef5e285c84 ("video:
fbdev: atari: Fix inverse handling") converted its final user to call fb_invert_cmaps() instead.

That commit seems not to be related, as it touches a static inverse variable inside the atafb driver only.
Commit e4fc27618b75 (from 2005) touched it last time, but it seems even older.

Patch applied to fbdev, but I dropped the wrong commit reference in the commit message.

Thanks!
Helge

Quoted 21 lines
Fixes c7ef5e285c84 ("video: fbdev: atari: Fix inverse handling")
Cc Geert Uytterhoeven <[email protected]>
Cc Helge Deller <[email protected]>
Cc <[email protected]> # v6.0+
---
  drivers/video/fbdev/core/fbcon.h | 1 -
  1 file changed, 1 deletion(-)
drivers/video/fbdev/core/fbcon.h +0 -1
index 1cd10a7faab0..fca14e9b729b 100644
@@ -30,7 +30,6 @@ struct fbcon_display {
  #ifdef CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION
      u_short scrollmode;             /* Scroll Method, use fb_scrollmode() */
  #endif
-    u_short inverse;                /* != 0 text black on white as default */
      short yscroll;                  /* Hardware scrolling */
      int vrows;                      /* number of virtual rows */
      int cursor_shape;
author maintainer
#2 lore raw

Hi

Am 09.02.26 um 22:31 schrieb Helge Deller:

Quoted 5 lines · Thomas Zimmermann
Quoted 1 line

The field inverse in struct fbcon_display is unused. Remove it.

Indeed, seems to be unused.

Quoted 7 lines
Quoted 3 lines

The field apparently never did anything. Commit c7ef5e285c84 ("video:
fbdev: atari: Fix inverse handling") converted its final user to call fb_invert_cmaps() instead.

That commit seems not to be related, as it touches a static inverse variable inside the atafb driver only.
Commit e4fc27618b75 (from 2005) touched it last time, but it seems even older.

Oh well. What a stupid mistake...

Quoted 3 lines

Patch applied to fbdev, but I dropped the wrong commit reference in the commit message.

Thanks a lot.

Best regards,
Thomas

Quoted 28 lines

Thanks!
Helge

Quoted 22 lines
Fixes c7ef5e285c84 ("video: fbdev: atari: Fix inverse handling")
Cc Geert Uytterhoeven <[email protected]>
Cc Helge Deller <[email protected]>
Cc <[email protected]> # v6.0+

---
  drivers/video/fbdev/core/fbcon.h | 1 -

  1 file changed, 1 deletion(-)
drivers/video/fbdev/core/fbcon.h +0 -0
index 1cd10a7faab0..fca14e9b729b 100644
@@ -30,7 +30,6 @@ struct fbcon_display {
   #ifdef CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION

      u_short scrollmode;             /* Scroll Method, use fb_scrollmode() */ #endif
-    u_short inverse;                /* != 0 text black on white as default */
      short yscroll;                  /* Hardware scrolling */ int vrows;                      /* number of virtual rows */ int cursor_shape;

Signature · 6 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)