From patchwork Tue Sep 17 05:11:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900821 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 273359F1E3 for ; Tue, 17 Sep 2013 05:11:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAA4C2015E for ; Tue, 17 Sep 2013 05:11:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D055F20121 for ; Tue, 17 Sep 2013 05:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751627Ab3IQFLI (ORCPT ); Tue, 17 Sep 2013 01:11:08 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:12010 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751739Ab3IQFLH (ORCPT ); Tue, 17 Sep 2013 01:11:07 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900F3L7Q5TNL0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:11:05 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 9A.21.31253.964E7325; Tue, 17 Sep 2013 14:11:05 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-ee-5237e469f3af Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 15.23.05832.964E7325; Tue, 17 Sep 2013 14:11:05 +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 <0MT90003S7QGY540@mmp1.samsung.com>; Tue, 17 Sep 2013 14:11:04 +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 17/19] video: simplefb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:11:04 +0900 Message-id: <001701ceb364$4f42ea50$edc8bef0$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAmvEQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsVy+t8zQ93MJ+ZBBi/+C1hcXniJ1eJE3wdW i3UPXzBZrJ9/i82BxePVhTssHn1bVjF6HL+xncnj8ya5AJYoLpuU1JzMstQifbsErowNGx6w FSzmrLjyZyZTA+Nt9i5GTg4JAROJridXmCFsMYkL99azdTFycQgJLGOUeL3qAwtM0Z5XO1gh EosYJc6tPMUM4fxilPjfv5QJpIpNQE3iy5fDYGNFBHQkJi3qAStiFmhklGjpfs4KkhASsJWY /eIq2FhOATuJ/RPmgtnCQPa01w2MIDaLgKrErCVT2EBsXqD6r8uaWSBsQYkfk++B2cwCWhLr dx5ngrDlJTaveQu0jAPoVHWJR391IW4wkljfdZIdokREYt+Ld4wg90gInGKX2Dz1NSvELgGJ b5MPsUD0ykpsOgANCkmJgytusExglJiFZPMsJJtnIdk8C8mKBYwsqxh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zvSX30NdryR5HJyjyTD52RzV5LYlDxe4TWQ/tbxeQ09uql/DvskztZoWBLRe837dft1PYZpS KlPeMZ8lWab1nftiFV93vMjkaudWbp/CzFy9NuzzgthFGY1HP98xnHLKcFdS28VgtWlB6U/T 5zE51u0sMbgecTgv55CrEktxRqKhFnNRcSIAcmXF1z8DAAA= 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/simplefb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 8d78106..ad46d2d 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -132,7 +132,7 @@ static int simplefb_parse_dt(struct platform_device *pdev, static int simplefb_parse_pd(struct platform_device *pdev, struct simplefb_params *params) { - struct simplefb_platform_data *pd = pdev->dev.platform_data; + struct simplefb_platform_data *pd = dev_get_platdata(&pdev->dev); int i; params->width = pd->width; @@ -167,7 +167,7 @@ static int simplefb_probe(struct platform_device *pdev) return -ENODEV; ret = -ENODEV; - if (pdev->dev.platform_data) + if (dev_get_platdata(&pdev->dev)) ret = simplefb_parse_pd(pdev, ¶ms); else if (pdev->dev.of_node) ret = simplefb_parse_dt(pdev, ¶ms);