From patchwork Tue Sep 17 05:08:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900781 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2A093BFF05 for ; Tue, 17 Sep 2013 05:09:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50BC42022D for ; Tue, 17 Sep 2013 05:09:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 06144202F0 for ; Tue, 17 Sep 2013 05:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751466Ab3IQFJI (ORCPT ); Tue, 17 Sep 2013 01:09:08 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:23300 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752176Ab3IQFJG (ORCPT ); Tue, 17 Sep 2013 01:09:06 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT90031W7MMPZ80@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:08:59 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 17.BF.31253.BE3E7325; Tue, 17 Sep 2013 14:08:59 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-13-5237e3eb55c2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 44.A0.09055.BE3E7325; Tue, 17 Sep 2013 14:08:59 +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 <0MT9001EE7MYMQ00@mmp1.samsung.com>; Tue, 17 Sep 2013 14:08:58 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Sascha Hauer' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 13/19] video: imxfb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:08:58 +0900 Message-id: <001301ceb364$040f82f0$0c2e88d0$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAhbMA Content-language: ko x-cr-hashedpuzzle: BL25 B407 CDmW Hghh KPQC KnVv MSdT Mmtq M9j1 M/Q9 RHky UPSj WKQh W3wT iutw u5Kb; 5; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGsAZQByAG4AZQBsAEAAcABlAG4AZwB1AHQAcgBvAG4AaQB4AC4AZABlADsAbABpAG4AdQB4AC0AZgBiAGQAZQB2AEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwBwAGwAYQBnAG4AaQBvAGoAQABqAGMAcgBvAHMAbwBmAHQALgBjAG8AbQA7AHQAbwBtAGkALgB2AGEAbABrAGUAaQBuAGUAbgBAAHQAaQAuAGMAbwBtAA==; Sosha1_v1; 7; {4992DA50-E7BC-4FC7-9F31-E58A02347C1E}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAG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oxFxUnAgB2G3kKAwMA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsVy+t9jAd3Xj82DDDoOCVpcXniJ1WLV1J0s Fif6PrBarHv4gsli/fxbbA6sHq8u3GHx6P9r4NG3ZRWjx/Eb25k8Pm+SC2CNamC0yUhNTEkt UkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAFarqRQlphTChQKSCwu VtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGPM6Pm9jKVgFndFz+4LbA2Mazi7GDk5JARMJOZs PsAEYYtJXLi3nq2LkYtDSGARo8TXW7dZIZxfjBJzrzeBVbEJqEl8+XKYHcQWEdCRmLSohxmk iFlgNaPEv+fXwRJCArYSs19cZQGxOQXsJPZPmAtmCwtYS/xdsYYRxGYRUJVo+POQGcTmBaq/ vvcGlC0o8WPyPbB6ZgEtifU7jzNB2PISm9e8BarhADpVXeLRX12IG4wkfs7ewwhRIiKx78U7 RpB7JATWsEqsWvKWBeI1U4mdx1azTmAUmYVkxSwkK2YhWTELyawFjCyrGEVTC5ILipPScw31 ihNzi0vz0vWS83M3MYJTxzOpHYwrGywOMQpwMCrx8M6QMg8SYk0sK67MPcQowcGsJMIbpgsU 4k1JrKxKLcqPLyrNSS0+xJgMDIGJzFKiyfnAtJZXEm9obGJmZGlkZmFkYm5OmrCSOO+BVutA IYH0xJLU7NTUgtQimC1MHJxSDYylef9TJt2q7444X6OxrXZJx4/YC5cWOuzVX2v09mF17PH9 86eab3L7wyMZdf6mHYPZignzFuhNKbR7u/dBm8oh816HoAC5dq2wZCOzN2v89L04o+t61b5u yEh6vfVCc3KrI/vkix5dRu8fKwu9Ofvgk3BAhsD7e2mqodlhv8N/Ze7LuJeyZbISS3FGoqEW c1FxIgCqhK/XYQMAAA== 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/imxfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c index 38733ac..44ee678 100644 --- a/drivers/video/imxfb.c +++ b/drivers/video/imxfb.c @@ -755,7 +755,7 @@ static int imxfb_resume(struct platform_device *dev) static int imxfb_init_fbinfo(struct platform_device *pdev) { - struct imx_fb_platform_data *pdata = pdev->dev.platform_data; + struct imx_fb_platform_data *pdata = dev_get_platdata(&pdev->dev); struct fb_info *info = dev_get_drvdata(&pdev->dev); struct imxfb_info *fbi = info->par; struct device_node *np; @@ -877,7 +877,7 @@ static int imxfb_probe(struct platform_device *pdev) if (!res) return -ENODEV; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); info = framebuffer_alloc(sizeof(struct imxfb_info), &pdev->dev); if (!info) @@ -1066,7 +1066,7 @@ static int imxfb_remove(struct platform_device *pdev) #endif unregister_framebuffer(info); - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); if (pdata && pdata->exit) pdata->exit(fbi->pdev);