From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758135AbdLVK0q (ORCPT ); Fri, 22 Dec 2017 05:26:46 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:46732 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbdLVK0m (ORCPT ); Fri, 22 Dec 2017 05:26:42 -0500 X-Google-Smtp-Source: ACJfBovAcVJgxWZptm6e2usDfXSwBf1t1B/FPQ0z3QhGuIXtEK1Nci+pq7JD7+PnTPHTcvkReGnrqw== 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.14.3