diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-17 01:01:38 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-20 05:22:02 -0400 |
commit | 1df86cdaee3acc9b7e72855870eccaecbff336e6 (patch) | |
tree | 238ea595571de0f54ef2eb7768c47b2efccfaf58 /drivers/video/s3c2410fb.c | |
parent | 22313679b86c2073b0a570f6e5685b2e0edbf9df (diff) |
video: s3c2410: 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/s3c2410fb.c')
-rw-r--r-- | drivers/video/s3c2410fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index 21a32adbb8ea..81af5a63e9e1 100644 --- a/drivers/video/s3c2410fb.c +++ b/drivers/video/s3c2410fb.c | |||
@@ -123,7 +123,7 @@ static int s3c2410fb_check_var(struct fb_var_screeninfo *var, | |||
123 | struct fb_info *info) | 123 | struct fb_info *info) |
124 | { | 124 | { |
125 | struct s3c2410fb_info *fbi = info->par; | 125 | struct s3c2410fb_info *fbi = info->par; |
126 | struct s3c2410fb_mach_info *mach_info = fbi->dev->platform_data; | 126 | struct s3c2410fb_mach_info *mach_info = dev_get_platdata(fbi->dev); |
127 | struct s3c2410fb_display *display = NULL; | 127 | struct s3c2410fb_display *display = NULL; |
128 | struct s3c2410fb_display *default_display = mach_info->displays + | 128 | struct s3c2410fb_display *default_display = mach_info->displays + |
129 | mach_info->default_display; | 129 | mach_info->default_display; |
@@ -686,7 +686,7 @@ static inline void modify_gpio(void __iomem *reg, | |||
686 | static int s3c2410fb_init_registers(struct fb_info *info) | 686 | static int s3c2410fb_init_registers(struct fb_info *info) |
687 | { | 687 | { |
688 | struct s3c2410fb_info *fbi = info->par; | 688 | struct s3c2410fb_info *fbi = info->par; |
689 | struct s3c2410fb_mach_info *mach_info = fbi->dev->platform_data; | 689 | struct s3c2410fb_mach_info *mach_info = dev_get_platdata(fbi->dev); |
690 | unsigned long flags; | 690 | unsigned long flags; |
691 | void __iomem *regs = fbi->io; | 691 | void __iomem *regs = fbi->io; |
692 | void __iomem *tpal; | 692 | void __iomem *tpal; |
@@ -833,7 +833,7 @@ static int s3c24xxfb_probe(struct platform_device *pdev, | |||
833 | int size; | 833 | int size; |
834 | u32 lcdcon1; | 834 | u32 lcdcon1; |
835 | 835 | ||
836 | mach_info = pdev->dev.platform_data; | 836 | mach_info = dev_get_platdata(&pdev->dev); |
837 | if (mach_info == NULL) { | 837 | if (mach_info == NULL) { |
838 | dev_err(&pdev->dev, | 838 | dev_err(&pdev->dev, |
839 | "no platform data for lcd, cannot attach\n"); | 839 | "no platform data for lcd, cannot attach\n"); |