Skip to content

Commit

Permalink
fbcon: remove restriction on margin color
Browse files Browse the repository at this point in the history
This removes the restriction on the value range of the fbcon=margin:
parameter. The color value really depends on the driver being used.

Signed-off-by: David Lechner <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
[b.zolnierkie: ported over fbcon changes]
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
dlech authored and bzolnier committed Sep 4, 2017
1 parent bf4392b commit 176780c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/fb/fbcon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions drivers/video/fbdev/core/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,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;
}
}
Expand Down

0 comments on commit 176780c

Please sign in to comment.