From patchwork Tue Jul 30 08:15:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2835282 Return-Path: X-Original-To: patchwork-linux-input@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 2C3AB9F7D6 for ; Tue, 30 Jul 2013 08:15:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8E8B2201F5 for ; Tue, 30 Jul 2013 08:15:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 655CA201F3 for ; Tue, 30 Jul 2013 08:15:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757944Ab3G3IPO (ORCPT ); Tue, 30 Jul 2013 04:15:14 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:45044 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754524Ab3G3IPL (ORCPT ); Tue, 30 Jul 2013 04:15:11 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQQ001SFPLAQDU0@mailout3.samsung.com> for linux-input@vger.kernel.org; Tue, 30 Jul 2013 17:15:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 1B.26.17404.E0677F15; Tue, 30 Jul 2013 17:15:10 +0900 (KST) X-AuditID: cbfee68d-b7f096d0000043fc-52-51f7760eafbb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D7.99.31505.E0677F15; Tue, 30 Jul 2013 17:15:10 +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 <0MQQ00K80PLA7FC0@mmp2.samsung.com>; Tue, 30 Jul 2013 17:15:10 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, 'Jingoo Han' Subject: [PATCH 24/35] Input: mouse: use dev_get_platdata() Date: Tue, 30 Jul 2013 17:15:10 +0900 Message-id: <005301ce8cfc$e8c0a6b0$ba41f410$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac6M/OCICGYL/X1KQxOMrfrQw+LGbA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsVy+t8zA12+su+BBrcOqlkcXvSC0eLh9hes FpcXXmK1uPnpG6sDi8fOWXfZPabMPcLq0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBltzzYw FkzhruhZ18zYwHiEs4uRk0NCwETi7bbj7BC2mMSFe+vZuhi5OIQEljFKXNtymhWmaOmWicwQ iemMEpNu/2KCcH4xSmx8NAmsnU1ATeLLl8NANgeHiIChxIw1VSAms0C6xNmDHiCmsIC1xN4r oiAmi4CqxKzn3CB9vAKWEj8uT2SFsAUlfky+xwJiMwtoSazfeZwJwpaX2LzmLTPENQoSO86+ ZgSxRQT0JO48u8kKUSMise/FO0aQwyQENrFL9D5vBStiERCQ+Db5EAvIXgkBWYlNB6DmSEoc XHGDZQKj2Cwkq2chWT0LyepZSFYsYGRZxSiaWpBcUJyUXmSoV5yYW1yal66XnJ+7iRESYb07 GG8fsD7EmAy0fiKzlGhyPjBC80riDY3NjCxMTUyNjcwtzUgTVhLnVWuxDhQSSE8sSc1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36NDuO+rO9X2aK6PfTEOS17a/2+rl4mqGTFUnjcsWCiEktx RqKhFnNRcSIAndntISMDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-8.4 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. Signed-off-by: Jingoo Han --- drivers/input/mouse/gpio_mouse.c | 2 +- drivers/input/mouse/pxa930_trkball.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/mouse/gpio_mouse.c b/drivers/input/mouse/gpio_mouse.c index 6b44413..6810a46 100644 --- a/drivers/input/mouse/gpio_mouse.c +++ b/drivers/input/mouse/gpio_mouse.c @@ -48,7 +48,7 @@ static void gpio_mouse_scan(struct input_polled_dev *dev) static int gpio_mouse_probe(struct platform_device *pdev) { - struct gpio_mouse_platform_data *pdata = pdev->dev.platform_data; + struct gpio_mouse_platform_data *pdata = dev_get_platdata(&pdev->dev); struct input_polled_dev *input_poll; struct input_dev *input; int pin, i; diff --git a/drivers/input/mouse/pxa930_trkball.c b/drivers/input/mouse/pxa930_trkball.c index 0ecb9e7..d20d2ae 100644 --- a/drivers/input/mouse/pxa930_trkball.c +++ b/drivers/input/mouse/pxa930_trkball.c @@ -166,7 +166,7 @@ static int pxa930_trkball_probe(struct platform_device *pdev) if (!trkball) return -ENOMEM; - trkball->pdata = pdev->dev.platform_data; + trkball->pdata = dev_get_platdata(&pdev->dev); if (!trkball->pdata) { dev_err(&pdev->dev, "no platform data defined\n"); error = -EINVAL;