From patchwork Tue Sep 17 04:57:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900651 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 6CF159F1BF for ; Tue, 17 Sep 2013 04:57:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9937820212 for ; Tue, 17 Sep 2013 04:57:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50B512017E for ; Tue, 17 Sep 2013 04:57:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751294Ab3IQE5Y (ORCPT ); Tue, 17 Sep 2013 00:57:24 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:58367 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162Ab3IQE5Y (ORCPT ); Tue, 17 Sep 2013 00:57:24 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900GPZ73L60L0@mailout1.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 13:57:22 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 46.10.20109.231E7325; Tue, 17 Sep 2013 13:57:22 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-92-5237e1327c56 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 5E.DD.09055.231E7325; Tue, 17 Sep 2013 13:57:22 +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 <0MT900FCX73MF430@mmp2.samsung.com>; Tue, 17 Sep 2013 13:57:22 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Shawn Guo' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 02/19] video: mx3fb: use dev_get_platdata() Date: Tue, 17 Sep 2013 13:57:22 +0900 Message-id: <000701ceb362$650a3de0$2f1eb9a0$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAE2lg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsVy+t8zQ12jh+ZBBpd361tcXniJ1eJE3wdW i3UPXzBZPF23hNli/fxbbA6sHq8u3GHxuHNtD5tH35ZVjB7Hb2xn8vi8SS6ANYrLJiU1J7Ms tUjfLoErY8vJC6wF1zgrmqdMYG5gbOPoYuTkkBAwkXhx6BM7hC0mceHeerYuRi4OIYFljBI7 j7aywRSd6G1igUhMZ5Q4u3gjI4Tzi1Hi+tFTYO1sAmoSX74cBrNFBHQkJi3qYQaxmQWWM0q8 7ZMFsYUEbCVmv7jKAmJzCthJ7J8wF8wWFrCWeHH1PSOIzSKgKnHu8xegORwcvED1XW/VQMK8 AoISPybfY4EYqSWxfudxJghbXmLzmrfMIOUSAuoSj/7qQlxgJLG35z8bRImIxL4X78BOlhC4 xS7Ruuk51CoBiW+TD7FA9MpKb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zMjSyMzCyMTc3PShJXEeQ+0WgcKCaQnlqRmp6YWpBbBbGHi4JRq YNRTP6VwJT9T9mQT24art/RDp4r88JnRYpq86jCXdPKN+rIJEZfTljUIivn9eFzNkrOmLDnd R3upr+2C9D3d8/1XOfgd+yJYwXU8j33pWYHzgso22UV3O9ZyHjXam7UteXttyCS7gPdbqg86 Nk+KnHSy4mgGk0Nh/X0j+VgLcc5d+blHP4luUmIpzkg01GIuKk4EAC1e9ZBHAwAA 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/mx3fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c index cfdb380..804f874 100644 --- a/drivers/video/mx3fb.c +++ b/drivers/video/mx3fb.c @@ -1354,7 +1354,7 @@ static struct fb_info *mx3fb_init_fbinfo(struct device *dev, struct fb_ops *ops) static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan) { struct device *dev = mx3fb->dev; - struct mx3fb_platform_data *mx3fb_pdata = dev->platform_data; + struct mx3fb_platform_data *mx3fb_pdata = dev_get_platdata(dev); const char *name = mx3fb_pdata->name; unsigned int irq; struct fb_info *fbi; @@ -1462,7 +1462,7 @@ static bool chan_filter(struct dma_chan *chan, void *arg) return false; dev = rq->mx3fb->dev; - mx3fb_pdata = dev->platform_data; + mx3fb_pdata = dev_get_platdata(dev); return rq->id == chan->chan_id && mx3fb_pdata->dma_dev == chan->device->dev;