Commit 006ac4d4 authored by Jingoo Han's avatar Jingoo Han Committed by Tomi Valkeinen

video: pxa168fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent dffb3b47
...@@ -364,7 +364,7 @@ static void set_graphics_start(struct fb_info *info, int xoffset, int yoffset) ...@@ -364,7 +364,7 @@ static void set_graphics_start(struct fb_info *info, int xoffset, int yoffset)
static void set_dumb_panel_control(struct fb_info *info) static void set_dumb_panel_control(struct fb_info *info)
{ {
struct pxa168fb_info *fbi = info->par; struct pxa168fb_info *fbi = info->par;
struct pxa168fb_mach_info *mi = fbi->dev->platform_data; struct pxa168fb_mach_info *mi = dev_get_platdata(fbi->dev);
u32 x; u32 x;
/* /*
...@@ -407,7 +407,7 @@ static int pxa168fb_set_par(struct fb_info *info) ...@@ -407,7 +407,7 @@ static int pxa168fb_set_par(struct fb_info *info)
u32 x; u32 x;
struct pxa168fb_mach_info *mi; struct pxa168fb_mach_info *mi;
mi = fbi->dev->platform_data; mi = dev_get_platdata(fbi->dev);
/* /*
* Set additional mode info. * Set additional mode info.
...@@ -609,7 +609,7 @@ static int pxa168fb_probe(struct platform_device *pdev) ...@@ -609,7 +609,7 @@ static int pxa168fb_probe(struct platform_device *pdev)
struct clk *clk; struct clk *clk;
int irq, ret; int irq, ret;
mi = pdev->dev.platform_data; mi = dev_get_platdata(&pdev->dev);
if (mi == NULL) { if (mi == NULL) {
dev_err(&pdev->dev, "no platform data defined\n"); dev_err(&pdev->dev, "no platform data defined\n");
return -EINVAL; return -EINVAL;
......
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