Skip to contentSkip to conversation

fbcon: remove restriction on margin color

PATCH In review David Lechner 2 participants 2 messages Aug 23, 2017 – Sep 4, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbcon: remove restriction on margin color

This removes the restriction on the value range of the fbcon=margin:
parameter. The color value really depends on the driver being used.

---

This is a follow up to "fbcon: add fbcon=margin:<color> command line option".

https://lkml.org/lkml/2017/8/23/479

 Documentation/fb/fbcon.txt    | 2 +-
 drivers/video/console/fbcon.c | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
Documentation/fb/fbcon.txt +1 -1
index 1822b19..a38d3aa 100644
@@ -153,7 +153,7 @@ C. Boot options
 	This option specifies the color of the margins. The margins are the
 	leftover area at the right and the bottom of the screen that are not
 	used by text. By default, this area will be black. The 'color' value
-	is 0 to 7 where 0 is black and 7 is white.
+	is an integer number that depends on the framebuffer driver being used.
 
 C. Attaching, Detaching and Unloading
 
drivers/video/console/fbcon.c +0 -2
index 1bce7a7..82e5d6b 100644
@@ -497,8 +497,6 @@ static int __init fb_console_setup(char *this_opt)
 			options += 7;
 			if (*options)
 				margin_color = simple_strtoul(options, &options, 0);
-			if (margin_color > 7)
-				margin_color = 0;
 			continue;
 		}
 	}
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · David Lechner

This removes the restriction on the value range of the fbcon=margin:
parameter. The color value really depends on the driver being used.

Patch queued for 4.14, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics