From patchwork Fri Dec 22 10:26:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 10129667 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 AAC2E6019C for ; Fri, 22 Dec 2017 10:27:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A177729C3C for ; Fri, 22 Dec 2017 10:27:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 963EB29E9D; Fri, 22 Dec 2017 10:27:02 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable 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 84D0029C3C for ; Fri, 22 Dec 2017 10:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756132AbdLVK0p (ORCPT ); Fri, 22 Dec 2017 05:26:45 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:37348 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755229AbdLVK0m (ORCPT ); Fri, 22 Dec 2017 05:26:42 -0500 Received: by mail-wr0-f196.google.com with SMTP id f8so16731724wre.4 for ; Fri, 22 Dec 2017 02:26:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Cfu7JBrNXKYXo70gJ2Up7owxZTvRpYHxn/icGrRjQUI=; b=Bo3Yftv+ocluFF0pQ9d3ldFvNh7rgSjQSish9i7P78NMuCA9L5M/X5bBy8e4hwOA+x 7B6RZ47Jl1PgpEa4Buj2V/8nqxHB7HeX2zLzoEFYfA0cVABrojNg3ySs9EaKv3WWMrU1 Lta7oMSIufYAT5m0KlKO8aBdJSn97H2+4tLHxGfTamDISVc+rjgu91GtCuAC+cbo6Msg bd4N5SyVhRZbTE8Q4Z5YXB8INDtbkpYpmMnhQqu7pvNEXp4UsUXOrxnmfaLPu71DKdmw 5WzByufTmUHSKB2cdfPHM05nf2NBxlrFmqaR1p8sSOdyXTxdHhz/vYSdZkQSbE+TvbdP zYsA== X-Gm-Message-State: AKGB3mJpXXZP2b/ModTmQgxAvxA0itCnAhDpV/GVycdDO/TsdVBUnjXW tTLCvw745tLl+XZ52ZS9snJY/kAeDVo= X-Google-Smtp-Source: ACJfBovAcVJgxWZptm6e2usDfXSwBf1t1B/FPQ0z3QhGuIXtEK1Nci+pq7JD7+PnTPHTcvkReGnrqw== X-Received: by 10.223.148.225 with SMTP id 88mr12263318wrr.16.1513938400447; Fri, 22 Dec 2017 02:26:40 -0800 (PST) Received: from minerva.home ([90.77.100.34]) by smtp.gmail.com with ESMTPSA id n65sm31737535wrb.17.2017.12.22.02.26.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Dec 2017 02:26:39 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Arnd Bergmann , Jarkko Sakkinen , Peter Huewe , Jason Gunthorpe , Greg Kroah-Hartman , linux-integrity@vger.kernel.org Subject: [PATCH] tpm: remove unused data fields from I2C and OF device ID tables Date: Fri, 22 Dec 2017 11:26:36 +0100 Message-Id: <20171222102636.12530-1-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The data field for the entries in the device tables are set but not used. Signed-off-by: Javier Martinez Canillas --- drivers/char/tpm/tpm_i2c_infineon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index 005c38879b2e..19fbd6a3a8e9 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c @@ -665,9 +665,9 @@ static int tpm_tis_i2c_init(struct device *dev) } static const struct i2c_device_id tpm_tis_i2c_table[] = { - {"tpm_i2c_infineon", 0}, - {"slb9635tt", 0}, - {"slb9645tt", 1}, + {"tpm_i2c_infineon" }, + {"slb9635tt" }, + {"slb9645tt" }, {}, }; @@ -675,9 +675,9 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_table); #ifdef CONFIG_OF static const struct of_device_id tpm_tis_i2c_of_match[] = { - { .compatible = "infineon,tpm_i2c_infineon", .data = (void *)0 }, - { .compatible = "infineon,slb9635tt", .data = (void *)0 }, - { .compatible = "infineon,slb9645tt", .data = (void *)1 }, + { .compatible = "infineon,tpm_i2c_infineon" }, + { .compatible = "infineon,slb9635tt" }, + { .compatible = "infineon,slb9645tt" }, {}, }; MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match);