From patchwork Sun Jan 22 07:38:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 9530807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F07D460431 for ; Sun, 22 Jan 2017 07:39:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4CD427FAD for ; Sun, 22 Jan 2017 07:39:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C54D52807E; Sun, 22 Jan 2017 07:39:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7710927FAD for ; Sun, 22 Jan 2017 07:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751025AbdAVHjH (ORCPT ); Sun, 22 Jan 2017 02:39:07 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35477 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbdAVHjG (ORCPT ); Sun, 22 Jan 2017 02:39:06 -0500 Received: by mail-pg0-f65.google.com with SMTP id 204so10783181pge.2; Sat, 21 Jan 2017 23:38:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=89vBj+41LkyHxjkk1vpXzi7NYqk9nJj5BWpgHRCxjLw=; b=dFEjDRX9cB0DqSlpOtByJ6epchccxI/5DaZ6aBovbR1RdBmylKY1BwPIUN4xH2LBTI SkeSJYvpj73X64tPnDr9HuGDv/ZoiUY2AmKZ9YE+oQbu7qh6/ENUYUHfXi5MRsYGjB1i dqBSYkBHWhocGyiDvB9ghh4ni5K3VhEsK6A5CkRc7BA8nQlVfI7wtt/dKLMHuFKohrp8 usGGg8A7lOf03YRbi5CIWMpODMeJmGYlOwXR6sjPWEeFIzDNGXTRKg/OsNO4xJ61/XVf G+3OH+PnIslrXS9PyxQ2+n2oij3cKoCDgqgHTAqWojwbWJOEPeUNCt1e+nUQ+2dRjPOm k5Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=89vBj+41LkyHxjkk1vpXzi7NYqk9nJj5BWpgHRCxjLw=; b=grjv5wRaqZ868/9M5FUamTiI0ctXM6/a5EkDjZncILgFCYMZY8fXloZqCPmDfAtaqU iIkjeFyw+0FfZZB5AjB4wfHRKpTp6Nwn2Z0zDJpwp68f+yDkNJQKcShEENJrHNzncQee ZtUGELVJhHsAVOLYijbM+4hqGjAFuwwH1CxSnWk78IGnkkDpDXzf5TJJ3oZDzhdSGe1/ W33VB6S1New/ZH1cRXnRCSQcSUjNk/NX96ka7DTjaiG71ruosJfJw7cg6I6d6S1BsK61 rpaw/NHdn2N41BRmFLc8u/Y4INSB+fMv2w3jvyiXizcZCdA813nOYuMK9BM2Bm31z4kW ZyhA== X-Gm-Message-State: AIkVDXKZIzxr1y4oNqS+Klt8xrRKfqqODPAiVF2e5evmiqSEMt/JGV2Soy6/ClQZQ8fUeg== X-Received: by 10.84.212.2 with SMTP id d2mr34905057pli.24.1485070729284; Sat, 21 Jan 2017 23:38:49 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1311:c8c9:9559:fa3:e34a]) by smtp.gmail.com with ESMTPSA id b66sm28187208pgc.20.2017.01.21.23.38.48 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 21 Jan 2017 23:38:48 -0800 (PST) Date: Sat, 21 Jan 2017 23:38:46 -0800 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Guenter Roeck , Zhang Jiejing , linux-kernel@vger.kernel.org Subject: [PATCH] Input: max11801_ts - drop call to input_set_drvdata() Message-ID: <20170122073846.GA30131@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Nobody calls input_get_drvdata() so setting it is not required. Signed-off-by: Dmitry Torokhov Acked-by: Guenter Roeck --- drivers/input/touchscreen/max11801_ts.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/max11801_ts.c b/drivers/input/touchscreen/max11801_ts.c index d87b89da114e..a595ae5284e3 100644 --- a/drivers/input/touchscreen/max11801_ts.c +++ b/drivers/input/touchscreen/max11801_ts.c @@ -199,7 +199,6 @@ static int max11801_ts_probe(struct i2c_client *client, __set_bit(BTN_TOUCH, input_dev->keybit); input_set_abs_params(input_dev, ABS_X, 0, MAX11801_MAX_X, 0, 0); input_set_abs_params(input_dev, ABS_Y, 0, MAX11801_MAX_Y, 0, 0); - input_set_drvdata(input_dev, data); max11801_ts_phy_init(data);