* [PATCH] omapfb: Remove casting and change coding style
@ 2008-09-18 12:49 arun c
2008-10-17 21:34 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: arun c @ 2008-09-18 12:49 UTC (permalink / raw)
To: linux-omap@vger.kernel.org
As sugested by RMK
Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
---
arch/arm/plat-omap/include/mach/omapfb.h | 4 ++--
drivers/video/omap/omapfb_main.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/plat-omap/include/mach/omapfb.h
b/arch/arm/plat-omap/include/mach/omapfb.h
index a4a84f3..a3c4408 100644
--- a/arch/arm/plat-omap/include/mach/omapfb.h
+++ b/arch/arm/plat-omap/include/mach/omapfb.h
@@ -276,8 +276,8 @@ typedef int (*omapfb_notifier_callback_t)(struct
notifier_block *,
void *fbi);
struct omapfb_mem_region {
- dma_addr_t paddr;
- void *vaddr;
+ u32 paddr;
+ void __iomem *vaddr;
unsigned long size;
u8 type; /* OMAPFB_PLANE_MEM_* */
unsigned alloc:1; /* allocated by the driver */
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index d176a2c..3bb4247 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -402,7 +402,7 @@ static void set_fb_fix(struct fb_info *fbi)
int bpp;
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_len = rg->size;
@@ -1718,8 +1718,8 @@ static int omapfb_do_probe(struct platform_device *pdev,
pr_info("omapfb: configured for panel %s\n", fbdev->panel->name);
- def_vxres = def_vxres ? : fbdev->panel->x_res;
- def_vyres = def_vyres ? : fbdev->panel->y_res;
+ def_vxres = def_vxres ? def_vxres : fbdev->panel->x_res;
+ def_vyres = def_vyres ? def_vyres : fbdev->panel->y_res;
init_state++;
--
1.5.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] omapfb: Remove casting and change coding style
2008-09-18 12:49 [PATCH] omapfb: Remove casting and change coding style arun c
@ 2008-10-17 21:34 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-10-17 21:34 UTC (permalink / raw)
To: arun c; +Cc: linux-omap@vger.kernel.org
* arun c <arun.edarath@gmail.com> [080918 05:49]:
> As sugested by RMK
Pushing today.
Tony
> Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
> ---
> arch/arm/plat-omap/include/mach/omapfb.h | 4 ++--
> drivers/video/omap/omapfb_main.c | 6 +++---
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/plat-omap/include/mach/omapfb.h
> b/arch/arm/plat-omap/include/mach/omapfb.h
> index a4a84f3..a3c4408 100644
> --- a/arch/arm/plat-omap/include/mach/omapfb.h
> +++ b/arch/arm/plat-omap/include/mach/omapfb.h
> @@ -276,8 +276,8 @@ typedef int (*omapfb_notifier_callback_t)(struct
> notifier_block *,
> void *fbi);
>
> struct omapfb_mem_region {
> - dma_addr_t paddr;
> - void *vaddr;
> + u32 paddr;
> + void __iomem *vaddr;
> unsigned long size;
> u8 type; /* OMAPFB_PLANE_MEM_* */
> unsigned alloc:1; /* allocated by the driver */
> diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
> index d176a2c..3bb4247 100644
> --- a/drivers/video/omap/omapfb_main.c
> +++ b/drivers/video/omap/omapfb_main.c
> @@ -402,7 +402,7 @@ static void set_fb_fix(struct fb_info *fbi)
> int bpp;
>
> 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_len = rg->size;
>
> @@ -1718,8 +1718,8 @@ static int omapfb_do_probe(struct platform_device *pdev,
>
> pr_info("omapfb: configured for panel %s\n", fbdev->panel->name);
>
> - def_vxres = def_vxres ? : fbdev->panel->x_res;
> - def_vyres = def_vyres ? : fbdev->panel->y_res;
> + def_vxres = def_vxres ? def_vxres : fbdev->panel->x_res;
> + def_vyres = def_vyres ? def_vyres : fbdev->panel->y_res;
>
> init_state++;
>
> --
> 1.5.3.4
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-17 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18 12:49 [PATCH] omapfb: Remove casting and change coding style arun c
2008-10-17 21:34 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).