From patchwork Sat Sep 28 12:28:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2957751 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 EA6FF9F288 for ; Sat, 28 Sep 2013 12:28:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3986D20345 for ; Sat, 28 Sep 2013 12:28:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70E63201FE for ; Sat, 28 Sep 2013 12:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753537Ab3I1M2n (ORCPT ); Sat, 28 Sep 2013 08:28:43 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:54491 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754087Ab3I1M2b (ORCPT ); Sat, 28 Sep 2013 08:28:31 -0400 Received: by mail-pa0-f54.google.com with SMTP id kx10so3893301pab.13 for ; Sat, 28 Sep 2013 05:28:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=d9zwjAq8ZLVeSovdttdhVPE75giNlKNvxRrkZOBjnxA=; b=XFLr0F8y8NaAPl7/Iq8PIPrXPYc+zO6aBUfRnBJgBAYo7niLWSNYdV+E5pouBgDGUL cC5fI/Z0kSvErieO+vyrLNp9ZA7rSSr3XuAr2+4TNqcxQNF1JI7GQlZUwLP6raEAUtU8 ZG4sUdUDc6nkADAGiXXsAhbMT3LvOwAGtQW1XV1psmPwM//qloFu9JVmnSOJJJsASiCx YZdQ/3uwdmd7RLQNY9JC9T8R03d5EdFLcKYQ/8pafKuvbOzlHzWN7rZkmT2jD3npsivG MEaRol9GQl+V+hDoLbt4QBFJ0wj0QECciffLbdqomZJkLTReFjAnDY4l7K/OijN0zKs0 mUuQ== X-Gm-Message-State: ALoCoQlzQkoVc8CdjCvc8tp760lqYQMRVUR9sSq/2ZKX0yLGaxxZURmv6Oge4/xSgVWUEyU+I5HE X-Received: by 10.66.170.138 with SMTP id am10mr6369841pac.51.1380371311119; Sat, 28 Sep 2013 05:28:31 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ed3sm14833051pbc.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 05:28:30 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 5/6] Input: egalax_ts - Remove redundant of_match_ptr Date: Sat, 28 Sep 2013 17:58:13 +0530 Message-Id: <1380371294-10289-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380371294-10289-1-git-send-email-sachin.kamat@linaro.org> References: <1380371294-10289-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 The data structure of_match_ptr() protects is always compiled in. Hence of_match_ptr() is not needed. Signed-off-by: Sachin Kamat --- drivers/input/touchscreen/egalax_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c index c856fbc..b4d721f 100644 --- a/drivers/input/touchscreen/egalax_ts.c +++ b/drivers/input/touchscreen/egalax_ts.c @@ -274,7 +274,7 @@ static struct i2c_driver egalax_ts_driver = { .name = "egalax_ts", .owner = THIS_MODULE, .pm = &egalax_ts_pm_ops, - .of_match_table = of_match_ptr(egalax_ts_dt_ids), + .of_match_table = egalax_ts_dt_ids, }, .id_table = egalax_ts_id, .probe = egalax_ts_probe,