From patchwork Tue Sep 17 05:02:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900721 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 0B14C9F1BF for ; Tue, 17 Sep 2013 05:02:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38E8220250 for ; Tue, 17 Sep 2013 05:02:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25DA720303 for ; Tue, 17 Sep 2013 05:02:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162Ab3IQFC0 (ORCPT ); Tue, 17 Sep 2013 01:02:26 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:21872 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238Ab3IQFC0 (ORCPT ); Tue, 17 Sep 2013 01:02:26 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT9003O27B8PZ70@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:02:24 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 9B.43.20109.062E7325; Tue, 17 Sep 2013 14:02:24 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-6a-5237e260f4f1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3A.D0.05832.062E7325; Tue, 17 Sep 2013 14:02:24 +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 <0MT900FXX7C02N70@mmp2.samsung.com>; Tue, 17 Sep 2013 14:02:24 +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 08/19] video: sa1100fb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:02:24 +0900 Message-id: <000d01ceb363$191e6680$4b5b3380$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAASbHA Content-language: ko x-cr-hashedpuzzle: CezV FF+m H4py LjW5 OSD8 OfSG P2mk RMx9 Vi0Q VmLb YiiO d1Gz eXba ffTn ggeQ kOwl; 4; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcABsAGEAZwBuAGkAbwBqAEAAagBjAHIAbwBzAG8AZgB0AC4AYwBvAG0AOwB0AG8AbQBpAC4AdgBhAGwAawBlAGkAbgBlAG4AQAB0AGkALgBjAG8AbQA=; Sosha1_v1; 7; {B94D9AB9-4311-47BD-AE27-6DD770684C47}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Tue, 17 Sep 2013 05:02:18 GMT; WwBQAEEAVABDAEgAIAAwADgALwAxADkAXQA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ER+ZBBnfu61lcXniJ1eJE3wdW i3UPXzBZrJ9/i82BxePVhTssHn1bVjF6HL+xncnj8ya5AJaoBkabjNTElNQihdS85PyUzLx0 WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCdSgpliTmlQKGAxOJiJX07TBNCQ9x0 LWAaI3R9Q4LgeowM0EDCOsaM+bOPsBWc4qj48WkyewNjN3sXIyeHhICJxKHP56BsMYkL99az dTFycQgJTGeUWHf/G5Tzi1FixfJtzCBVbAJqEl++HAbrEBHQkZi0qIcZpIhZoJFRoqX7OStI QkjAVmL2i6ssIDangJ3E/glzwWxhIPvOr1uMIDaLgKrEva+rwQbxAtW3fOlgg7AFJX5MvgdW zyygJbF+53EmCFteYvOat0DLOIBOVZd49FcXxBQRMJLoaUqAqBCR2PfiHSPIORICP1gkfjb+ Zob4zFRi0e6TTBMYRWYh2TALyYZZSDbMQjJrASPLKkbR1ILkguKk9FwjveLE3OLSvHS95Pzc TYzgNPFMegfjqgaLQ4wCHIxKPLwzpMyDhFgTy4orcw8xSnAwK4nwhukChXhTEiurUovy44tK c1KLDzEmAwNgIrOUaHI+MIXllcQbGpuYGVkamVkYmZibkyasJM57sNU6UEggPbEkNTs1tSC1 CGYLEwenVAPj6k9tfIcvvJqW2Ocs5LRDtX/jpTkxJ77elA+81u/5ufwZs2+4gCpb4UKR87s3 cMj2Mc+bzeQ6QaRhVs2WzXPSi+4t2Fjc9iX17p8vj7ivRqeeuOTSfTKs2Xpv/udNlZwmjMz/ hZ8HfP1k8fRu1vTwH12P3Cz+q1eqtHNNU2/1Ohs+c9WRJY9ZlViKMxINtZiLihMBhrHYWVcD AAA= 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/sa1100fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index de76da0..580c444e 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c @@ -1116,7 +1116,7 @@ static struct fb_monspecs monspecs = { static struct sa1100fb_info *sa1100fb_init_fbinfo(struct device *dev) { - struct sa1100fb_mach_info *inf = dev->platform_data; + struct sa1100fb_mach_info *inf = dev_get_platdata(dev); struct sa1100fb_info *fbi; unsigned i; @@ -1201,7 +1201,7 @@ static int sa1100fb_probe(struct platform_device *pdev) struct resource *res; int ret, irq; - if (!pdev->dev.platform_data) { + if (!dev_get_platdata(&pdev->dev)) { dev_err(&pdev->dev, "no platform LCD data\n"); return -EINVAL; }