From: Stefano Stabellini Date: Thu, 24 Jul 2008 04:31:48 +0000 (-0700) Subject: fbcon: bgcolor fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d04a4a72d7e1519b4838f24bdd4b5d0f3f426dc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git fbcon: bgcolor fix The fourth bit of the background color is the blink property bit, not the intensity bit, as for the foreground color. Therefore it shouldn't be included in the background color. Signed-off-by: Stefano Stabellini Cc: Krzysztof Helt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h index 0135e0395456..beb6a74fc7f2 100644 --- a/drivers/video/console/fbcon.h +++ b/drivers/video/console/fbcon.h @@ -92,7 +92,7 @@ struct fbcon_ops { #define attr_fgcol(fgshift,s) \ (((s) >> (fgshift)) & 0x0f) #define attr_bgcol(bgshift,s) \ - (((s) >> (bgshift)) & 0x0f) + (((s) >> (bgshift)) & 0x07) /* Monochrome */ #define attr_bold(s) \