From patchwork Tue Sep 17 04:58:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900661 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 240AE9F1BF for ; Tue, 17 Sep 2013 04:58:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FAA720303 for ; Tue, 17 Sep 2013 04:58:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D0A12017E for ; Tue, 17 Sep 2013 04:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644Ab3IQE6h (ORCPT ); Tue, 17 Sep 2013 00:58:37 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:54613 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162Ab3IQE6g (ORCPT ); Tue, 17 Sep 2013 00:58:36 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900D2S75H9Q20@mailout4.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 13:58:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 70.E8.31253.A71E7325; Tue, 17 Sep 2013 13:58:34 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-e9-5237e17ab368 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 9F.CF.05832.A71E7325; Tue, 17 Sep 2013 13:58:34 +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 <0MT900FS775MF430@mmp2.samsung.com>; Tue, 17 Sep 2013 13:58:34 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Wan ZongShun' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 03/19] video: nuc900fb: use dev_get_platdata() Date: Tue, 17 Sep 2013 13:58:33 +0900 Message-id: <000801ceb362$8fa427f0$aeec77d0$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAJIgw Content-language: ko x-cr-hashedpuzzle: G9km Tn1E VLcL YTJv ZhmF Zh29 aJeJ ctFB fBB9 qt9+ ulQ4 vlVP vpzM wUzn 1Gal 2SNv; 5; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbQBjAHUAbwBzAC4AYwBvAG0AQABnAG0AYQBpAGwALgBjAG8AbQA7AHAAbABhAGcAbgBpAG8AagBAAGoAYwByAG8AcwBvAGYAdAAuAGMAbwBtADsAdABvAG0AaQAuAHYAYQBsAGsAZQBpAG4AZQBuAEAAdABpAC4AYwBvAG0A; Sosha1_v1; 7; {2237B6CB-F622-430A-A908-2BF8BD0C30A6}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBj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SDbWYi4oTARhQtTUCAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDKsWRmVeSWpSXmKPExsVy+t9jQd2qh+ZBBu3fuC0uL7zEanGi7wOr xdPpdRbrHr5gslg//xabA6vHzll32T1eXbjD4tG3ZRWjx/Eb25k8Pm+SC2CNamC0yUhNTEkt UkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAFarqRQlphTChQKSCwu VtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGPMONi9j6mgmbfi1roXbA2ML7m6GDk5JARMJBZd 2soEYYtJXLi3nq2LkYtDSGA6o8TezUfYQBJCAr8YJd48sgax2QTUJL58OcwOYosI6EhMWtTD DNLALLCSUeJs01JGiAZbidkvrrKA2JwCdhL7J8wFs4WB7LalN4G2cXCwCKhK/O/VBQnzApUf 3/adHcIWlPgx+R5YObOAlsT6nceZIGx5ic1r3jKDtEoIqEs8+qsLcYKRxNn2aWwQJSIS+168 YwQ5R0JgDatEy6kVzBCPmUo8f/mHbQKjyCwkK2YhWTELyYpZSGYtYGRZxSiaWpBcUJyUnmuk V5yYW1yal66XnJ+7iRGcNp5J72Bc1WBxiFGAg1GJh3eGlHmQEGtiWXFl7iFGCQ5mJRHeMF2g EG9KYmVValF+fFFpTmrxIcZkYABMZJYSTc4HprS8knhDYxMzI0sjMwsjE3Nz0oSVxHkPtloH CgmkJ5akZqemFqQWwWxh4uCUamAUvFGhek9+e83WbP1v+aocn6cynFV9wSYSc1pAd+4Wkx6W wC3h192yuVl9jpftSln1JvC69f3LS9f864vt4mzPneN4TZWrSI/lYbSK46NVYj/XCTCW5l+N MfnqJdb4fPJCttaMr+n5DL19er6bb5+pPjthueSNmdNiNwWnc+qaOCm+bo2rbFdiKc5INNRi LipOBAAul43nXwMAAA== 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/nuc900fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index 796e511..ec32f67 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c @@ -91,7 +91,7 @@ static int nuc900fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) { struct nuc900fb_info *fbi = info->par; - struct nuc900fb_mach_info *mach_info = fbi->dev->platform_data; + struct nuc900fb_mach_info *mach_info = dev_get_platdata(fbi->dev); struct nuc900fb_display *display = NULL; struct nuc900fb_display *default_display = mach_info->displays + mach_info->default_display; @@ -358,7 +358,7 @@ static inline void modify_gpio(void __iomem *reg, static int nuc900fb_init_registers(struct fb_info *info) { struct nuc900fb_info *fbi = info->par; - struct nuc900fb_mach_info *mach_info = fbi->dev->platform_data; + struct nuc900fb_mach_info *mach_info = dev_get_platdata(fbi->dev); void __iomem *regs = fbi->io; /*reset the display engine*/ @@ -512,7 +512,7 @@ static int nuc900fb_probe(struct platform_device *pdev) int size; dev_dbg(&pdev->dev, "devinit\n"); - 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");