From patchwork Tue Sep 17 05:01:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900711 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2910F9F1BF for ; Tue, 17 Sep 2013 05:01:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 561C120213 for ; Tue, 17 Sep 2013 05:01:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69B6720212 for ; Tue, 17 Sep 2013 05:01:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751294Ab3IQFBk (ORCPT ); Tue, 17 Sep 2013 01:01:40 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:10245 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238Ab3IQFBk (ORCPT ); Tue, 17 Sep 2013 01:01:40 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900FLN7A7TNK0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:01:39 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 9E.B6.29948.232E7325; Tue, 17 Sep 2013 14:01:38 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-98-5237e2323ddf Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 98.80.05832.232E7325; Tue, 17 Sep 2013 14:01:38 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MT9000SF7AQY510@mmp1.samsung.com>; Tue, 17 Sep 2013 14:01:38 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 07/19] video: s3c2410: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:01:38 +0900 Message-id: <000c01ceb362$fdca3ee0$f95ebca0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAARCiQ Content-language: ko x-cr-hashedpuzzle: BDin NVvz Oqlp UB0o UzWC WCSN WFny YPLu ehUP fBYa h2XF iBtu iUp6 iZJu jlHB sMwM; 4; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcABsAGEAZwBuAGkAbwBqAEAAagBjAHIAbwBzAG8AZgB0AC4AYwBvAG0AOwB0AG8AbQBpAC4AdgBhAGwAawBlAGkAbgBlAG4AQAB0AGkALgBjAG8AbQA=; Sosha1_v1; 7; {AD04425D-CA01-49A8-9C1B-999393DA717E}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Tue, 17 Sep 2013 05:01:31 GMT; WwBQAEEAVABDAEgAIAAwADcALwAxADkAXQAgAHYAa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fnWVpcXniJ1eJE3wdW i3UPXzBZrJ9/i82BxePVhTssHn1bVjF6HL+xncnj8ya5AJaoBkabjNTElNQihdS85PyUzLx0 WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCdSgpliTmlQKGAxOJiJX07TBNCQ9x0 LWAaI3R9Q4LgeowM0EDCOsaMeeunsxT08lasXreNsYHxA1cXIyeHhICJxIk9n9khbDGJC/fW s3UxcnEICSxilFj9cA6U84tRYlXzXBaQKjYBNYkvXw6DdYgI6EhMWtTDDFLELNDIKNHS/ZwV JCEkYCsx+8VVsAZOATuJ/RMgmoWB4s/+LgezWQRUJfZOvcUIYvMCxVf+6WGFsAUlfky+B1bD LKAlsX7ncSYIW15i85q3QMs4gE5Vl3j0VxfiBiOJa/uPs0KUiEjse/GOEeQeCYEvLBLr3p9n hXjNVOLk6vvMExhFZiFZMQvJillIVsxCMmsBI8sqRtHUguSC4qT0XCO94sTc4tK8dL3k/NxN jOBE8Ux6B+OqBotDjAIcjEo8vDOkzIOEWBPLiitzDzFKcDArifCG6QKFeFMSK6tSi/Lji0pz UosPMSYDQ2Ais5Rocj4wieWVxBsam5gZWRqZWRiZmJuTJqwkznuw1TpQSCA9sSQ1OzW1ILUI ZgsTB6dUA2OAdNLEzm2WV1nYKn4ZGp/pm3Cr0Dnw05ymV8apqZp//2zOT1T9+b//7eODP/rF OV7//8L9aP1jrc4VKhsmf+XaWLNr9u+0w197Py1a+fLRr5bapVv8J94IW85WwGXKcaxN6+Gt 7u0HPb6/PvVI1vqqQkpq2D7/pwkSj1Tret36lhn1m2Raf1+pxFKckWioxVxUnAgAnS+bf1gD AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/video/s3c2410fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index 21a32ad..81af5a6 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, struct fb_info *info) { struct s3c2410fb_info *fbi = info->par; - struct s3c2410fb_mach_info *mach_info = fbi->dev->platform_data; + struct s3c2410fb_mach_info *mach_info = dev_get_platdata(fbi->dev); struct s3c2410fb_display *display = NULL; struct s3c2410fb_display *default_display = mach_info->displays + mach_info->default_display; @@ -686,7 +686,7 @@ static inline void modify_gpio(void __iomem *reg, static int s3c2410fb_init_registers(struct fb_info *info) { struct s3c2410fb_info *fbi = info->par; - struct s3c2410fb_mach_info *mach_info = fbi->dev->platform_data; + struct s3c2410fb_mach_info *mach_info = dev_get_platdata(fbi->dev); unsigned long flags; void __iomem *regs = fbi->io; void __iomem *tpal; @@ -833,7 +833,7 @@ static int s3c24xxfb_probe(struct platform_device *pdev, int size; u32 lcdcon1; - mach_info = pdev->dev.platform_data; + mach_info = dev_get_platdata(&pdev->dev); if (mach_info == NULL) { dev_err(&pdev->dev, "no platform data for lcd, cannot attach\n");