From patchwork Tue Sep 17 04:59:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900691 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 60AC69F1BF for ; Tue, 17 Sep 2013 05:00:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D50C20212 for ; Tue, 17 Sep 2013 05:00:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECA472017E for ; Tue, 17 Sep 2013 05:00:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751247Ab3IQFAC (ORCPT ); Tue, 17 Sep 2013 01:00:02 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:9816 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238Ab3IQFAB (ORCPT ); Tue, 17 Sep 2013 01:00:01 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900FIZ780TNK0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:00:00 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 9A.F1.20109.FC1E7325; Tue, 17 Sep 2013 13:59:59 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-d2-5237e1cfb2a8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 78.6E.09055.FC1E7325; Tue, 17 Sep 2013 13:59:59 +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 <0MT900FT077ZVP10@mmp2.samsung.com>; Tue, 17 Sep 2013 13:59:59 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Haojian Zhuang' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 05/19] video: pxa168fb: use dev_get_platdata() Date: Tue, 17 Sep 2013 13:59:59 +0900 Message-id: <000a01ceb362$c29d51e0$47d7f5a0$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAMtcA Content-language: ko x-cr-hashedpuzzle: AgzE E2Zk FTWT FmnF Fz2O GV/W IyFp NUhL a6Bd lBJV p9Un rz1T sruM xnEB x3iX 160b; 5; aABhAG8AagBpAGEAbgAuAHoAaAB1AGEAbgBnAEAAZwBtAGEAaQBsAC4AYwBvAG0AOwBqAGcAMQAuAGgAYQBuAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAbABpAG4AdQB4AC0AZgBiAGQAZQB2AEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwBwAGwAYQBnAG4AaQBvAGoAQABqAGMAcgBvAHMAbwBmAHQALgBjAG8AbQA7AHQAbwBtAGkALgB2AGEAbABrAGUAaQBuAGUAbgBAAHQAaQAuAGMAbwBtAA==; Sosha1_v1; 7; {1AC5F104-CFD9-450A-93C3-27C2F0ACC91E}; agBnADEALgBoAGEAbgBA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XRG7QMbjycnDe5Zuas9H0TpwV9Zqz+OV19isE0JZbijERDLeai4kQAhevcTAIDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsVy+t9jQd3zD82DDNr3WlhcWGducXnhJVaL E30fWC3WPXzBZLF+/i02B1aPnbPusnu8unCHxaNvyypGj+M3tjN5fN4kF8Aa1cBok5GamJJa pJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQO0XEmhLDGnFCgUkFhc rKRvh2lCaIibrgVMY4Sub0gQXI+RARpIWMeY8frrEpaCx1wV537vY21gfMnRxcjJISFgIjHt 5ysmCFtM4sK99WxdjFwcQgLTGSVunT0J5fxilDi7+TA7SBWbgJrEly8QtoiAjsSkRT3MIEXM AhsYJQ4+bWIBSQgJ2ErMfnEVzOYUsJPYP2EumC0MZJ9pW8cMYrMIqEpMXr+OFcTmBar/9uMp M4QtKPFj8j2wemYBLYn1O48zQdjyEpvXvAWq4QA6VV3i0V9diBuMJJ6uucoGUSIise/FO0aQ eyQE9rBK7H/wjR3iNVOJ11/usU5gFJmFZMUsJCtmIVkxC8msBYwsqxhFUwuSC4qT0nMN9YoT c4tL89L1kvNzNzGCU8czqR2MKxssDjEKcDAq8fDOkDIPEmJNLCuuzD3EKMHBrCTCG6YLFOJN SaysSi3Kjy8qzUktPsSYDAyBicxSosn5wLSWVxJvaGxiZmRpZGZhZGJuTpqwkjjvgVbrQCGB 9MSS1OzU1ILUIpgtTBycUg2MVQ5fzVw10wKYvBjivFp/rdN2vmBYvexibevd9bsZJSOXTbry vlZyq/ikt7/0VRnU51mzX1t3m2nlkqfq4YWM0j7KqQ//SulnF9pLlF+552Lxp94uQvLoS9XX JyfN2aqx/tsOfxGnw1oW24y++vfJ14VJRR66t8bUhrlMUNS+0z/24fYaPQMlluKMREMt5qLi RACNy6NrYQMAAA== 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/pxa168fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c index aa9bd1f..c95b9e4 100644 --- a/drivers/video/pxa168fb.c +++ b/drivers/video/pxa168fb.c @@ -364,7 +364,7 @@ static void set_graphics_start(struct fb_info *info, int xoffset, int yoffset) static void set_dumb_panel_control(struct fb_info *info) { struct pxa168fb_info *fbi = info->par; - struct pxa168fb_mach_info *mi = fbi->dev->platform_data; + struct pxa168fb_mach_info *mi = dev_get_platdata(fbi->dev); u32 x; /* @@ -407,7 +407,7 @@ static int pxa168fb_set_par(struct fb_info *info) u32 x; struct pxa168fb_mach_info *mi; - mi = fbi->dev->platform_data; + mi = dev_get_platdata(fbi->dev); /* * Set additional mode info. @@ -609,7 +609,7 @@ static int pxa168fb_probe(struct platform_device *pdev) struct clk *clk; int irq, ret; - mi = pdev->dev.platform_data; + mi = dev_get_platdata(&pdev->dev); if (mi == NULL) { dev_err(&pdev->dev, "no platform data defined\n"); return -EINVAL;