Commit a124ee32 authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Helge Deller

fbdev: platinumfb: Remove trailing whitespaces

Fix coding style. No functional changes.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 58b0aca7
...@@ -52,17 +52,17 @@ struct fb_info_platinum { ...@@ -52,17 +52,17 @@ struct fb_info_platinum {
__u8 red, green, blue; __u8 red, green, blue;
} palette[256]; } palette[256];
u32 pseudo_palette[16]; u32 pseudo_palette[16];
volatile struct cmap_regs __iomem *cmap_regs; volatile struct cmap_regs __iomem *cmap_regs;
unsigned long cmap_regs_phys; unsigned long cmap_regs_phys;
volatile struct platinum_regs __iomem *platinum_regs; volatile struct platinum_regs __iomem *platinum_regs;
unsigned long platinum_regs_phys; unsigned long platinum_regs_phys;
__u8 __iomem *frame_buffer; __u8 __iomem *frame_buffer;
volatile __u8 __iomem *base_frame_buffer; volatile __u8 __iomem *base_frame_buffer;
unsigned long frame_buffer_phys; unsigned long frame_buffer_phys;
unsigned long total_vram; unsigned long total_vram;
int clktype; int clktype;
int dactype; int dactype;
...@@ -133,7 +133,7 @@ static int platinumfb_set_par (struct fb_info *info) ...@@ -133,7 +133,7 @@ static int platinumfb_set_par (struct fb_info *info)
platinum_set_hardware(pinfo); platinum_set_hardware(pinfo);
init = platinum_reg_init[pinfo->vmode-1]; init = platinum_reg_init[pinfo->vmode-1];
if ((pinfo->vmode == VMODE_832_624_75) && (pinfo->cmode > CMODE_8)) if ((pinfo->vmode == VMODE_832_624_75) && (pinfo->cmode > CMODE_8))
offset = 0x10; offset = 0x10;
...@@ -214,7 +214,7 @@ static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, ...@@ -214,7 +214,7 @@ static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
break; break;
} }
} }
return 0; return 0;
} }
...@@ -269,7 +269,7 @@ static void platinum_set_hardware(struct fb_info_platinum *pinfo) ...@@ -269,7 +269,7 @@ static void platinum_set_hardware(struct fb_info_platinum *pinfo)
struct platinum_regvals *init; struct platinum_regvals *init;
int i; int i;
int vmode, cmode; int vmode, cmode;
vmode = pinfo->vmode; vmode = pinfo->vmode;
cmode = pinfo->cmode; cmode = pinfo->cmode;
...@@ -436,7 +436,7 @@ static int read_platinum_sense(struct fb_info_platinum *info) ...@@ -436,7 +436,7 @@ static int read_platinum_sense(struct fb_info_platinum *info)
* This routine takes a user-supplied var, and picks the best vmode/cmode from it. * This routine takes a user-supplied var, and picks the best vmode/cmode from it.
* It also updates the var structure to the actual mode data obtained * It also updates the var structure to the actual mode data obtained
*/ */
static int platinum_var_to_par(struct fb_var_screeninfo *var, static int platinum_var_to_par(struct fb_var_screeninfo *var,
struct fb_info_platinum *pinfo, struct fb_info_platinum *pinfo,
int check_only) int check_only)
{ {
...@@ -478,12 +478,12 @@ static int platinum_var_to_par(struct fb_var_screeninfo *var, ...@@ -478,12 +478,12 @@ static int platinum_var_to_par(struct fb_var_screeninfo *var,
pinfo->yoffset = 0; pinfo->yoffset = 0;
pinfo->vxres = pinfo->xres; pinfo->vxres = pinfo->xres;
pinfo->vyres = pinfo->yres; pinfo->vyres = pinfo->yres;
return 0; return 0;
} }
/* /*
* Parse user specified options (`video=platinumfb:') * Parse user specified options (`video=platinumfb:')
*/ */
static int __init platinumfb_setup(char *options) static int __init platinumfb_setup(char *options)
...@@ -624,7 +624,7 @@ static int platinumfb_probe(struct platform_device* odev) ...@@ -624,7 +624,7 @@ static int platinumfb_probe(struct platform_device* odev)
break; break;
} }
dev_set_drvdata(&odev->dev, info); dev_set_drvdata(&odev->dev, info);
rc = platinum_init_fb(info); rc = platinum_init_fb(info);
if (rc != 0) { if (rc != 0) {
iounmap(pinfo->frame_buffer); iounmap(pinfo->frame_buffer);
...@@ -640,9 +640,9 @@ static void platinumfb_remove(struct platform_device* odev) ...@@ -640,9 +640,9 @@ static void platinumfb_remove(struct platform_device* odev)
{ {
struct fb_info *info = dev_get_drvdata(&odev->dev); struct fb_info *info = dev_get_drvdata(&odev->dev);
struct fb_info_platinum *pinfo = info->par; struct fb_info_platinum *pinfo = info->par;
unregister_framebuffer (info); unregister_framebuffer (info);
/* Unmap frame buffer and registers */ /* Unmap frame buffer and registers */
iounmap(pinfo->frame_buffer); iounmap(pinfo->frame_buffer);
iounmap(pinfo->platinum_regs); iounmap(pinfo->platinum_regs);
...@@ -656,7 +656,7 @@ static void platinumfb_remove(struct platform_device* odev) ...@@ -656,7 +656,7 @@ static void platinumfb_remove(struct platform_device* odev)
framebuffer_release(info); framebuffer_release(info);
} }
static struct of_device_id platinumfb_match[] = static struct of_device_id platinumfb_match[] =
{ {
{ {
.name = "platinum", .name = "platinum",
...@@ -664,7 +664,7 @@ static struct of_device_id platinumfb_match[] = ...@@ -664,7 +664,7 @@ static struct of_device_id platinumfb_match[] =
{}, {},
}; };
static struct platform_driver platinum_driver = static struct platform_driver platinum_driver =
{ {
.driver = { .driver = {
.name = "platinumfb", .name = "platinumfb",
......
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