From patchwork Tue Jul 30 08:13:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2835277 Return-Path: X-Original-To: patchwork-linux-input@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 C7975C0319 for ; Tue, 30 Jul 2013 08:13:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF1FF201FB for ; Tue, 30 Jul 2013 08:13:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58ED9201F3 for ; Tue, 30 Jul 2013 08:13:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757882Ab3G3INn (ORCPT ); Tue, 30 Jul 2013 04:13:43 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:54736 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753972Ab3G3INl (ORCPT ); Tue, 30 Jul 2013 04:13:41 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQQ00FTGPIRFOS0@mailout4.samsung.com> for linux-input@vger.kernel.org; Tue, 30 Jul 2013 17:13:39 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A2.15.17404.3B577F15; Tue, 30 Jul 2013 17:13:39 +0900 (KST) X-AuditID: cbfee68d-b7f096d0000043fc-a5-51f775b35cc6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 02.49.31505.3B577F15; Tue, 30 Jul 2013 17:13:39 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQQ00HC5PIRCG20@mmp1.samsung.com>; Tue, 30 Jul 2013 17:13:39 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, 'Jingoo Han' Subject: [PATCH 21/35] Input: joysticks: use dev_get_platdata() Date: Tue, 30 Jul 2013 17:13:39 +0900 Message-id: <005001ce8cfc$b29ec580$17dc5080$@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/KWyyWWQ7Lu3QGSdFnHQtQ/42A== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsVy+t8zQ93Npd8DDS6dNbQ4vOgFo8XD7S9Y LS4vvMRqcfPTN1YHFo+ds+6ye0yZe4TVo2/LKkaPz5vkAliiuGxSUnMyy1KL9O0SuDKuT5Qo 2M9Tca9lIWsD43GuLkZODgkBE4kdcw+xQ9hiEhfurWfrYuTiEBJYxijxZuZJJpiii8t2M0Ek FjFKHPozE8r5xSjx/shvRpAqNgE1iS9fDgON4uAQETCUmLGmCsRkFkiXOHvQA6RCWMBeYvHG yawgNouAqsTql39ZQUp4BSwlpv/QAAnzCghK/Jh8jwXEZhbQkli/8zgThC0vsXnNW2aIcxQk dpx9DbZUREBPYvHxI4wQNSIS+168YwS5TEJgF7vEq57zLBC7BCS+TT7EArJLQkBWYtMBqDmS EgdX3GCZwCg2C8nqWUhWz0KyehaSFQsYWVYxiqYWJBcUJ6UXGeoVJ+YWl+al6yXn525ihERY 7w7G2wesDzEmA62fyCwlmpwPjNC8knhDYzMjC1MTU2Mjc0sz0oSVxHnVWq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3137/XqjOhJ64593vBiUacq/0rxN5u4559oq3pYKrd6 lb4SS3FGoqEWc1FxIgB6KYVvIwMAAA== 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/joystick/as5011.c | 2 +- drivers/input/joystick/maplecontrol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/joystick/as5011.c b/drivers/input/joystick/as5011.c index 121cd63..13eba2a 100644 --- a/drivers/input/joystick/as5011.c +++ b/drivers/input/joystick/as5011.c @@ -234,7 +234,7 @@ static int as5011_probe(struct i2c_client *client, int irq; int error; - plat_data = client->dev.platform_data; + plat_data = dev_get_platdata(&client->dev); if (!plat_data) return -EINVAL; diff --git a/drivers/input/joystick/maplecontrol.c b/drivers/input/joystick/maplecontrol.c index 59c10ec..8aa6e4c 100644 --- a/drivers/input/joystick/maplecontrol.c +++ b/drivers/input/joystick/maplecontrol.c @@ -61,7 +61,7 @@ static void dc_pad_callback(struct mapleq *mq) static int dc_pad_open(struct input_dev *dev) { - struct dc_pad *pad = dev->dev.platform_data; + struct dc_pad *pad = dev_get_platdata(&dev->dev); maple_getcond_callback(pad->mdev, dc_pad_callback, HZ/20, MAPLE_FUNC_CONTROLLER); @@ -71,7 +71,7 @@ static int dc_pad_open(struct input_dev *dev) static void dc_pad_close(struct input_dev *dev) { - struct dc_pad *pad = dev->dev.platform_data; + struct dc_pad *pad = dev_get_platdata(&dev->dev); maple_getcond_callback(pad->mdev, dc_pad_callback, 0, MAPLE_FUNC_CONTROLLER);