From patchwork Sat Sep 28 12:28:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2957711 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 BFC9D9F288 for ; Sat, 28 Sep 2013 12:28:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0558A20345 for ; Sat, 28 Sep 2013 12:28:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D618201FE for ; Sat, 28 Sep 2013 12:28:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835Ab3I1M2j (ORCPT ); Sat, 28 Sep 2013 08:28:39 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:51120 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027Ab3I1M2W (ORCPT ); Sat, 28 Sep 2013 08:28:22 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so3641648pbb.6 for ; Sat, 28 Sep 2013 05:28:22 -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; bh=hDIDgFsw6Kmhsf/MZJFlp4j6mt23nIJCJFF8b54fcJA=; b=PNlVO3uxImuoCrJ147Li555+w3gNAUu8h8opFLiHgzAvNNMZxe2GZECXmF26hWu8Ft lUM+Mo8dOEnzKgPckc5gZ1qlsIZoE1yPmMFI5aZRoeKeL5+WKAxum2G35dqzZjcuyHj2 ukDha6w7TgpY0NaIn/UOXlYM28gut6xkiA8jxFM+CfUHvjSy7y8l4xWZkmyRdWgFQb18 wjDnD6qCqfXrZ+2hHrzB4Nyfg8qzlvxY8dj4HOG7wfgBMQaf9pfhPEjN6meJBJwqovXa 3WI6UHdDmG2gnpeT1ZFvqWcTb6QIVhH/eTyhKqVNB4OEHTmCQX2iMw3KoPsnfF0Qp9gN O26A== X-Gm-Message-State: ALoCoQnE+d+CGkuUkQJJXSK0iTeWwz4Ni8+5c/htUehi1ttH7dP+xZQBf/1cVoo3nLY+cpKp9qyQ X-Received: by 10.68.219.194 with SMTP id pq2mr12959655pbc.52.1380371302009; Sat, 28 Sep 2013 05:28:22 -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:21 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 1/6] Input: lpc32xx-keys - Remove redundant of_match_ptr Date: Sat, 28 Sep 2013 17:58:09 +0530 Message-Id: <1380371294-10289-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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/keyboard/lpc32xx-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/lpc32xx-keys.c b/drivers/input/keyboard/lpc32xx-keys.c index 4218143..8b1b013 100644 --- a/drivers/input/keyboard/lpc32xx-keys.c +++ b/drivers/input/keyboard/lpc32xx-keys.c @@ -383,7 +383,7 @@ static struct platform_driver lpc32xx_kscan_driver = { .name = DRV_NAME, .owner = THIS_MODULE, .pm = &lpc32xx_kscan_pm_ops, - .of_match_table = of_match_ptr(lpc32xx_kscan_match), + .of_match_table = lpc32xx_kscan_match, } };