mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 02:15:20 +02:00
cleaup code style
This commit is contained in:
parent
d89fdafa97
commit
767987c14e
@ -330,8 +330,8 @@ static int jzfb_alloc_vidmem(struct jzfb *jzfb)
|
|||||||
|
|
||||||
static void jzfb_free_devmem(struct jzfb *jzfb)
|
static void jzfb_free_devmem(struct jzfb *jzfb)
|
||||||
{
|
{
|
||||||
dma_free_coherent(&jzfb->pdev->dev, jzfb->devmem_size, jzfb->devmem,
|
dma_free_coherent(&jzfb->pdev->dev, jzfb->devmem_size, jzfb->devmem,
|
||||||
jzfb->devmem_phys);
|
jzfb->devmem_phys);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct fb_ops jzfb_ops = {
|
static struct fb_ops jzfb_ops = {
|
||||||
@ -400,17 +400,17 @@ static int __devinit jzfb_probe(struct platform_device *pdev)
|
|||||||
platform_set_drvdata(pdev, jzfb);
|
platform_set_drvdata(pdev, jzfb);
|
||||||
|
|
||||||
fb_videomode_to_modelist(pdata->modes, pdata->num_modes,
|
fb_videomode_to_modelist(pdata->modes, pdata->num_modes,
|
||||||
&fb->modelist);
|
&fb->modelist);
|
||||||
fb->mode = pdata->modes;
|
fb->mode = pdata->modes;
|
||||||
|
|
||||||
fb_videomode_to_var(&fb->var, fb->mode);
|
fb_videomode_to_var(&fb->var, fb->mode);
|
||||||
fb->var.bits_per_pixel = pdata->bpp;
|
fb->var.bits_per_pixel = pdata->bpp;
|
||||||
jzfb_check_var(&fb->var, fb);
|
jzfb_check_var(&fb->var, fb);
|
||||||
|
|
||||||
ret = jzfb_alloc_vidmem(jzfb);
|
ret = jzfb_alloc_vidmem(jzfb);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&pdev->dev, "Failed to allocate video memory\n");
|
dev_err(&pdev->dev, "Failed to allocate video memory\n");
|
||||||
goto err_iounmap;
|
goto err_iounmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
fb->fix = jzfb_fix;
|
fb->fix = jzfb_fix;
|
||||||
|
Loading…
Reference in New Issue
Block a user