From patchwork Tue Sep 17 05:04:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900751 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 05AAB9F1BF for ; Tue, 17 Sep 2013 05:04:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 169ED20250 for ; Tue, 17 Sep 2013 05:04:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41F7C2022D for ; Tue, 17 Sep 2013 05:04:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612Ab3IQFEw (ORCPT ); Tue, 17 Sep 2013 01:04:52 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:22353 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238Ab3IQFEw (ORCPT ); Tue, 17 Sep 2013 01:04:52 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT9006557FP3370@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:04:51 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id F9.10.17682.3F2E7325; Tue, 17 Sep 2013 14:04:51 +0900 (KST) X-AuditID: cbfee68e-b7f756d000004512-5c-5237e2f304eb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 44.8F.09055.2F2E7325; Tue, 17 Sep 2013 14:04:51 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MT900F2D7G2VW30@mmp2.samsung.com>; Tue, 17 Sep 2013 14:04:50 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Darren Etheridge' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 11/19] video: da8xx-fb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:04:50 +0900 Message-id: <001001ceb363$703f1680$50bd4380$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAXtqw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsVy+t8zI93Pj8yDDJrWs1pMXOFlcXnhJVaL E30fWC3WPXzBZLF+/i02B1aPVxfusHj0bVnF6HH8xnYmj8+b5AJYorhsUlJzMstSi/TtErgy 2hdMZi14zlmxccNixgbG+RxdjJwcEgImEvd3zmOBsMUkLtxbzwZiCwksY5RYP5UFpmbG1nOs XYxcQPHpjBJtWx4yQji/GCX6H89nBKliE1CT+PLlMDuILSKgIzFpUQ8zSBGzwGqgjl83mSHG 2krMfnEVbCyngJ3E/glzwWxhIHvd3VlgNSwCqhJfV18Bi/MC1a9Z9IUZwhaU+DH5HlicWUBL Yv3O40wQtrzE5jVvgWo4gE5Vl3j0VxfiBiOJ/VOPMkOUiEjse/EO7GgJgUvsEqv+vWeB2CUg 8W3yIRaIXlmJTQeYIT6WlDi44gbLBE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ampBalFMFuYODilGhiPH43e2Hdo a/S5qYlZgv1sfPVvp0d49MxuzJl3s41hQtVna/78S0o6eVznLD+IaRf/VVj99tG+P0JJibM9 paz5K1Zvdp4omve/9cffedxiFxYqBOSEGTDaN4W7/hP74Op8KTSNs9n17vcJpzi678Tt1/k6 Lea3iZz/3abMIx9W8SyrjdQKNVBiKc5INNRiLipOBACF8maLQwMAAA== 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/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index e030e17..70fc8e8 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -1314,7 +1314,7 @@ static struct fb_ops da8xx_fb_ops = { static struct fb_videomode *da8xx_fb_get_videomode(struct platform_device *dev) { - struct da8xx_lcdc_platform_data *fb_pdata = dev->dev.platform_data; + struct da8xx_lcdc_platform_data *fb_pdata = dev_get_platdata(&dev->dev); struct fb_videomode *lcdc_info; int i; @@ -1336,7 +1336,7 @@ static struct fb_videomode *da8xx_fb_get_videomode(struct platform_device *dev) static int fb_probe(struct platform_device *device) { struct da8xx_lcdc_platform_data *fb_pdata = - device->dev.platform_data; + dev_get_platdata(&device->dev); static struct resource *lcdc_regs; struct lcd_ctrl_config *lcd_cfg; struct fb_videomode *lcdc_info;