From patchwork Tue Jul 30 08:15:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2835286 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 74B4A9F7D6 for ; Tue, 30 Jul 2013 08:15:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86FAE201F5 for ; Tue, 30 Jul 2013 08:15:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC635201FB for ; Tue, 30 Jul 2013 08:15:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758024Ab3G3IPi (ORCPT ); Tue, 30 Jul 2013 04:15:38 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:55060 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757991Ab3G3IPg (ORCPT ); Tue, 30 Jul 2013 04:15:36 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQQ00FCDPLYDFS0@mailout4.samsung.com> for linux-input@vger.kernel.org; Tue, 30 Jul 2013 17:15:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 56.F9.08825.62677F15; Tue, 30 Jul 2013 17:15:34 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-45-51f77626ca0a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D4.B9.31505.62677F15; Tue, 30 Jul 2013 17:15:34 +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 <0MQQ00NBUPLY3L20@mmp2.samsung.com>; Tue, 30 Jul 2013 17:15:34 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, 'Jingoo Han' Subject: [PATCH 25/35] Input: touchscreen: use dev_get_platdata() Date: Tue, 30 Jul 2013 17:15:34 +0900 Message-id: <005401ce8cfc$f70d1500$e5273f00$@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/O5mFDyE2eGESuiA2NiJS5byXg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsVy+t8zI121su+BBtN+qlkcXvSC0eLh9hes FpcXXmK1uPnpG6sDi8fOWXfZPabMPcLq0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBnXJ0oU 7OepuNeykLWB8ThXFyMnh4SAicScpj42CFtM4sK99UA2F4eQwDJGiSdre4AcDrCi3Q9NIOLT GSXunrsNVfSLUeLwklXsIN1sAmoSX74cZgdpEBEwlJixpgrEZBZIlzh70AOkQljAUeLHnFdg u1gEVCX+vT7JBFLCK2ApcXZfKUiYV0BQ4sfkeywgNrOAlsT6nceZIGx5ic1r3jJDnKkgsePs a0aIRXoS7etlIEpEJPa9eMcIcpiEwDZ2ibvLFzFDrBKQ+Db5EAvEJ7ISmw5AjZGUOLjiBssE RrFZSDbPQrJ5FpLNs5CsWMDIsopRNLUguaA4Kb3ISK84Mbe4NC9dLzk/dxMjJLr6djDePGB9 iDEZaP1EZinR5HxgdOaVxBsamxlZmJqYGhuZW5qRJqwkzqvWYh0oJJCeWJKanZpakFoUX1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Xz/h/XGapjS2Nbnsf1GKjf/cmk xFKckWioxVxUnAgAZse6SSEDAAA= 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 Acked-by: Fugang Duan --- 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);