提交 908633f3 编写于 作者: R Ralf Baechle 提交者: Linus Torvalds

fbcon: Convert struct font_desc to use ISO C initializers

Akpm's patch "newport_con warning fix" got me to look at the console drivers
again and one thing that I noticed was that none of the fonts was using ISO
initializers for it's fonts.
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ad41b439
...@@ -5133,14 +5133,14 @@ static const unsigned char fontdata_10x18[FONTDATAMAX] = { ...@@ -5133,14 +5133,14 @@ static const unsigned char fontdata_10x18[FONTDATAMAX] = {
const struct font_desc font_10x18 = { const struct font_desc font_10x18 = {
FONT10x18_IDX, .idx = FONT10x18_IDX,
"10x18", .name = "10x18",
10, .width = 10,
18, .height = 18,
fontdata_10x18, .data = fontdata_10x18,
#ifdef __sparc__ #ifdef __sparc__
5 .pref = 5,
#else #else
-1 .pref = -1,
#endif #endif
}; };
...@@ -3342,10 +3342,11 @@ static const unsigned char fontdata_6x11[FONTDATAMAX] = { ...@@ -3342,10 +3342,11 @@ static const unsigned char fontdata_6x11[FONTDATAMAX] = {
const struct font_desc font_vga_6x11 = { const struct font_desc font_vga_6x11 = {
VGA6x11_IDX, .idx = VGA6x11_IDX,
"ProFont6x11", .name = "ProFont6x11",
6, .width = 6,
11, .height = 11,
fontdata_6x11, .data = fontdata_6x11,
-2000 /* Try avoiding this font if possible unless on MAC */ /* Try avoiding this font if possible unless on MAC */
.pref = -2000,
}; };
...@@ -4109,10 +4109,10 @@ static const unsigned char fontdata_7x14[FONTDATAMAX] = { ...@@ -4109,10 +4109,10 @@ static const unsigned char fontdata_7x14[FONTDATAMAX] = {
const struct font_desc font_7x14 = { const struct font_desc font_7x14 = {
FONT7x14_IDX, .idx = FONT7x14_IDX,
"7x14", .name = "7x14",
7, .width = 7,
14, .height = 14,
fontdata_7x14, .data = fontdata_7x14,
0 .pref = 0,
}; };
...@@ -4622,10 +4622,10 @@ static const unsigned char fontdata_8x16[FONTDATAMAX] = { ...@@ -4622,10 +4622,10 @@ static const unsigned char fontdata_8x16[FONTDATAMAX] = {
const struct font_desc font_vga_8x16 = { const struct font_desc font_vga_8x16 = {
VGA8x16_IDX, .idx = VGA8x16_IDX,
"VGA8x16", .name = "VGA8x16",
8, .width = 8,
16, .height = 16,
fontdata_8x16, .data = fontdata_8x16,
0 .pref = 0,
}; };
...@@ -2574,10 +2574,10 @@ static const unsigned char fontdata_8x8[FONTDATAMAX] = { ...@@ -2574,10 +2574,10 @@ static const unsigned char fontdata_8x8[FONTDATAMAX] = {
const struct font_desc font_vga_8x8 = { const struct font_desc font_vga_8x8 = {
VGA8x8_IDX, .idx = VGA8x8_IDX,
"VGA8x8", .name = "VGA8x8",
8, .width = 8,
8, .height = 8,
fontdata_8x8, .data = fontdata_8x8,
0 .pref = 0,
}; };
...@@ -262,14 +262,14 @@ static const unsigned char acorndata_8x8[] = { ...@@ -262,14 +262,14 @@ static const unsigned char acorndata_8x8[] = {
}; };
const struct font_desc font_acorn_8x8 = { const struct font_desc font_acorn_8x8 = {
ACORN8x8_IDX, .idx = ACORN8x8_IDX,
"Acorn8x8", .name = "Acorn8x8",
8, .width = 8,
8, .height = 8,
acorndata_8x8, .data = acorndata_8x8,
#ifdef CONFIG_ARCH_ACORN #ifdef CONFIG_ARCH_ACORN
20 .pref = 20,
#else #else
0 .pref = 0,
#endif #endif
}; };
...@@ -2148,11 +2148,11 @@ static const unsigned char fontdata_mini_4x6[FONTDATAMAX] = { ...@@ -2148,11 +2148,11 @@ static const unsigned char fontdata_mini_4x6[FONTDATAMAX] = {
}; };
const struct font_desc font_mini_4x6 = { const struct font_desc font_mini_4x6 = {
MINI4x6_IDX, .idx = MINI4x6_IDX,
"MINI4x6", .name = "MINI4x6",
4, .width = 4,
6, .height = 6,
fontdata_mini_4x6, .data = fontdata_mini_4x6,
3 .pref = 3,
}; };
...@@ -2578,10 +2578,10 @@ static const unsigned char fontdata_pearl8x8[FONTDATAMAX] = { ...@@ -2578,10 +2578,10 @@ static const unsigned char fontdata_pearl8x8[FONTDATAMAX] = {
}; };
const struct font_desc font_pearl_8x8 = { const struct font_desc font_pearl_8x8 = {
PEARL8x8_IDX, .idx = PEARL8x8_IDX,
"PEARL8x8", .name = "PEARL8x8",
8, .width = 8,
8, .height = 8,
fontdata_pearl8x8, .data = fontdata_pearl8x8,
2 .pref = 2,
}; };
...@@ -6152,14 +6152,14 @@ static const unsigned char fontdata_sun12x22[FONTDATAMAX] = { ...@@ -6152,14 +6152,14 @@ static const unsigned char fontdata_sun12x22[FONTDATAMAX] = {
const struct font_desc font_sun_12x22 = { const struct font_desc font_sun_12x22 = {
SUN12x22_IDX, .idx = SUN12x22_IDX,
"SUN12x22", .name = "SUN12x22",
12, .width = 12,
22, .height = 22,
fontdata_sun12x22, .data = fontdata_sun12x22,
#ifdef __sparc__ #ifdef __sparc__
5 .pref = 5,
#else #else
-1 .pref = -1,
#endif #endif
}; };
...@@ -262,14 +262,14 @@ static const unsigned char fontdata_sun8x16[FONTDATAMAX] = { ...@@ -262,14 +262,14 @@ static const unsigned char fontdata_sun8x16[FONTDATAMAX] = {
}; };
const struct font_desc font_sun_8x16 = { const struct font_desc font_sun_8x16 = {
SUN8x16_IDX, .idx = SUN8x16_IDX,
"SUN8x16", .name = "SUN8x16",
8, .width = 8,
16, .height = 16,
fontdata_sun8x16, .data = fontdata_sun8x16,
#ifdef __sparc__ #ifdef __sparc__
10 .pref = 10,
#else #else
-1 .pref = -1,
#endif #endif
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册