aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/mx3fb.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-17 00:57:22 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 05:22:01 -0400
commit521fdb7c4d05ab48fcbfe3d7eac169e305c88118 (patch)
tree45468139509ab638e59f32ba5923df7988198d14 /drivers/video/mx3fb.c
parenta5d58be0796ac93d18a6dde5a14fafee0b73eb0d (diff)
video: mx3fb: 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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/mx3fb.c')
-rw-r--r--drivers/video/mx3fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index cfdb380ec81e..804f874d32d3 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -1354,7 +1354,7 @@ static struct fb_info *mx3fb_init_fbinfo(struct device *dev, struct fb_ops *ops)
1354static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan) 1354static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan)
1355{ 1355{
1356 struct device *dev = mx3fb->dev; 1356 struct device *dev = mx3fb->dev;
1357 struct mx3fb_platform_data *mx3fb_pdata = dev->platform_data; 1357 struct mx3fb_platform_data *mx3fb_pdata = dev_get_platdata(dev);
1358 const char *name = mx3fb_pdata->name; 1358 const char *name = mx3fb_pdata->name;
1359 unsigned int irq; 1359 unsigned int irq;
1360 struct fb_info *fbi; 1360 struct fb_info *fbi;
@@ -1462,7 +1462,7 @@ static bool chan_filter(struct dma_chan *chan, void *arg)
1462 return false; 1462 return false;
1463 1463
1464 dev = rq->mx3fb->dev; 1464 dev = rq->mx3fb->dev;
1465 mx3fb_pdata = dev->platform_data; 1465 mx3fb_pdata = dev_get_platdata(dev);
1466 1466
1467 return rq->id == chan->chan_id && 1467 return rq->id == chan->chan_id &&
1468 mx3fb_pdata->dma_dev == chan->device->dev; 1468 mx3fb_pdata->dma_dev == chan->device->dev;