Commit 301bb4e1 authored by arun c's avatar arun c Committed by Tony Lindgren

omapfb: Remove casting and change coding style

As sugested by RMK
Signed-off-by: default avatarArun C <arunedarath@mistralsolutions.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 311c4190
...@@ -276,8 +276,8 @@ typedef int (*omapfb_notifier_callback_t)(struct notifier_block *, ...@@ -276,8 +276,8 @@ typedef int (*omapfb_notifier_callback_t)(struct notifier_block *,
void *fbi); void *fbi);
struct omapfb_mem_region { struct omapfb_mem_region {
dma_addr_t paddr; u32 paddr;
void *vaddr; void __iomem *vaddr;
unsigned long size; unsigned long size;
u8 type; /* OMAPFB_PLANE_MEM_* */ u8 type; /* OMAPFB_PLANE_MEM_* */
unsigned alloc:1; /* allocated by the driver */ unsigned alloc:1; /* allocated by the driver */
......
...@@ -402,7 +402,7 @@ static void set_fb_fix(struct fb_info *fbi) ...@@ -402,7 +402,7 @@ static void set_fb_fix(struct fb_info *fbi)
int bpp; int bpp;
rg = &plane->fbdev->mem_desc.region[plane->idx]; rg = &plane->fbdev->mem_desc.region[plane->idx];
fbi->screen_base = (char __iomem *)rg->vaddr; fbi->screen_base = rg->vaddr;
fix->smem_start = rg->paddr; fix->smem_start = rg->paddr;
fix->smem_len = rg->size; fix->smem_len = rg->size;
...@@ -1718,8 +1718,8 @@ static int omapfb_do_probe(struct platform_device *pdev, ...@@ -1718,8 +1718,8 @@ static int omapfb_do_probe(struct platform_device *pdev,
pr_info("omapfb: configured for panel %s\n", fbdev->panel->name); pr_info("omapfb: configured for panel %s\n", fbdev->panel->name);
def_vxres = def_vxres ? : fbdev->panel->x_res; def_vxres = def_vxres ? def_vxres : fbdev->panel->x_res;
def_vyres = def_vyres ? : fbdev->panel->y_res; def_vyres = def_vyres ? def_vyres : fbdev->panel->y_res;
init_state++; init_state++;
......
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