Message ID | 001101ceb363$b0f5b530$12e11f90$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fbdev-owner@kernel.org> 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 212B3BFF05 for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 17 Sep 2013 05:06:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 571552022D for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 17 Sep 2013 05:06:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A3E7201F5 for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 17 Sep 2013 05:06:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751721Ab3IQFGm (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Tue, 17 Sep 2013 01:06:42 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:11216 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375Ab3IQFGl (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Tue, 17 Sep 2013 01:06:41 -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 <0MT900F2G7J1CKL0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:06:40 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E8.65.20109.F53E7325; Tue, 17 Sep 2013 14:06:40 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-44-5237e35f93ff Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E3.00.09055.F53E7325; Tue, 17 Sep 2013 14:06:39 +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 <0MT900FMS7J3FS70@mmp2.samsung.com>; Tue, 17 Sep 2013 14:06:39 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Tomi Valkeinen' <tomi.valkeinen@ti.com> Cc: 'Jean-Christophe PLAGNIOL-VILLARD' <plagnioj@jcrosoft.com>, linux-fbdev@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com>, 'Nicolas Ferre' <nicolas.ferre@atmel.com> References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 01/19] video: atmel_lcdfb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:06:39 +0900 Message-id: <001101ceb363$b0f5b530$12e11f90$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAa9/g Content-language: ko x-cr-hashedpuzzle: Bhfr BmAW DCFN Hl2R JqHp R6CO UcXY V1bB XQun fDrF gpBl jRKL j6DB lT2g n4Cd q/B8; 5; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbgBpAGMAbwBsAGEAcwAuAGYAZQByAHIAZQBAAGEAdABtAGUAbAAuAGMAbwBtADsAcABsAGEAZwBuAGk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fr39qeCOo7vz37adWh9XdZxJYKHhQKFvvq+FHTWubc u6naKzhOux/M+i6/0DrKvv5je4PphL0Tde+y5Ol4pJsmGE368eHCv0JXr20Wqzu3dlw9psRS nJFoqMVcVJwIAFBC/WdjAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> 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 |
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 088511a..df05550 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -935,8 +935,8 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) sinfo = info->par; - if (dev->platform_data) { - pdata_sinfo = (struct atmel_lcdfb_info *)dev->platform_data; + if (dev_get_platdata(dev)) { + pdata_sinfo = dev_get_platdata(dev); sinfo->default_bpp = pdata_sinfo->default_bpp; sinfo->default_dmacon = pdata_sinfo->default_dmacon; sinfo->default_lcdcon2 = pdata_sinfo->default_lcdcon2;
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. Also, unnecessary casting from return value that is a void pointer is removed. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/video/atmel_lcdfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)