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. Signed-off-by: David Lechner <david@lechnology.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> [b.zolnierkie: ported over fbcon changes] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
bf4392bac1
commit
176780c7d2
2 changed files with 1 additions and 3 deletions
|
@ -153,7 +153,7 @@ C. Boot options
|
||||||
This option specifies the color of the margins. The margins are the
|
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
|
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
|
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
|
C. Attaching, Detaching and Unloading
|
||||||
|
|
||||||
|
|
|
@ -498,8 +498,6 @@ static int __init fb_console_setup(char *this_opt)
|
||||||
options += 7;
|
options += 7;
|
||||||
if (*options)
|
if (*options)
|
||||||
margin_color = simple_strtoul(options, &options, 0);
|
margin_color = simple_strtoul(options, &options, 0);
|
||||||
if (margin_color > 7)
|
|
||||||
margin_color = 0;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue