Commit ad3eb66c authored by Takashi Iwai's avatar Takashi Iwai Committed by Kleber Sacilotto de Souza

fonts: Fix coding style

BugLink: https://bugs.launchpad.net/bugs/1851623

Fix indentation, spaces, and move EXPORT_SYMBOL line to the
appropriate place as a preliminary work.  No actual code change.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit aa1d19f1)
Signed-off-by: default avatarPo-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent d0cf7048
...@@ -90,7 +90,6 @@ static const struct font_desc *fonts[] = { ...@@ -90,7 +90,6 @@ static const struct font_desc *fonts[] = {
* specified font. * specified font.
* *
*/ */
const struct font_desc *find_font(const char *name) const struct font_desc *find_font(const char *name)
{ {
unsigned int i; unsigned int i;
...@@ -100,6 +99,7 @@ const struct font_desc *find_font(const char *name) ...@@ -100,6 +99,7 @@ const struct font_desc *find_font(const char *name)
return fonts[i]; return fonts[i];
return NULL; return NULL;
} }
EXPORT_SYMBOL(find_font);
/** /**
...@@ -116,7 +116,6 @@ const struct font_desc *find_font(const char *name) ...@@ -116,7 +116,6 @@ const struct font_desc *find_font(const char *name)
* chosen font. * chosen font.
* *
*/ */
const struct font_desc *get_default_font(int xres, int yres, u32 font_w, const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
u32 font_h) u32 font_h)
{ {
...@@ -125,7 +124,7 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w, ...@@ -125,7 +124,7 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
g = NULL; g = NULL;
cc = -10000; cc = -10000;
for(i=0; i<num_fonts; i++) { for (i = 0; i < num_fonts; i++) {
f = fonts[i]; f = fonts[i];
c = f->pref; c = f->pref;
#if defined(__mc68000__) #if defined(__mc68000__)
...@@ -152,8 +151,6 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w, ...@@ -152,8 +151,6 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
} }
return g; return g;
} }
EXPORT_SYMBOL(find_font);
EXPORT_SYMBOL(get_default_font); EXPORT_SYMBOL(get_default_font);
MODULE_AUTHOR("James Simmons <jsimmons@users.sf.net>"); MODULE_AUTHOR("James Simmons <jsimmons@users.sf.net>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment