public inbox for linux-integrity@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables
@ 2017-12-22 17:47 Javier Martinez Canillas
  2017-12-22 17:48 ` Jason Gunthorpe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Javier Martinez Canillas @ 2017-12-22 17:47 UTC (permalink / raw)
  To: linux-kernel
  Cc: Javier Martinez Canillas, Arnd Bergmann, Jarkko Sakkinen,
	Peter Huewe, Jason Gunthorpe, Greg Kroah-Hartman, linux-integrity

The data field for the entries in the device tables are set but not used.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

---

Changes in v2:
- Also empty spaces (suggested by Jason Gunthorpe).

 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..c1dd39eaaeeb 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables
  2017-12-22 17:47 [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables Javier Martinez Canillas
@ 2017-12-22 17:48 ` Jason Gunthorpe
  2017-12-24 21:00 ` Jarkko Sakkinen
  2018-01-02 14:46 ` Jarkko Sakkinen
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2017-12-22 17:48 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: linux-kernel, Arnd Bergmann, Jarkko Sakkinen, Peter Huewe,
	Greg Kroah-Hartman, linux-integrity

On Fri, Dec 22, 2017 at 06:47:41PM +0100, Javier Martinez Canillas wrote:
> The data field for the entries in the device tables are set but not used.
> 
> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
> 
> 
> Changes in v2:
> - Also empty spaces (suggested by Jason Gunthorpe).
> 
>  drivers/char/tpm/tpm_i2c_infineon.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@ziepe.ca>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables
  2017-12-22 17:47 [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables Javier Martinez Canillas
  2017-12-22 17:48 ` Jason Gunthorpe
@ 2017-12-24 21:00 ` Jarkko Sakkinen
  2018-01-02 14:46 ` Jarkko Sakkinen
  2 siblings, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2017-12-24 21:00 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: linux-kernel, Arnd Bergmann, Peter Huewe, Jason Gunthorpe,
	Greg Kroah-Hartman, linux-integrity

On Fri, Dec 22, 2017 at 06:47:41PM +0100, Javier Martinez Canillas wrote:
> The data field for the entries in the device tables are set but not used.
> 
> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
> 
> ---
> 
> Changes in v2:
> - Also empty spaces (suggested by Jason Gunthorpe).
> 
>  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..c1dd39eaaeeb 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
> 

Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

/Jarkko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables
  2017-12-22 17:47 [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables Javier Martinez Canillas
  2017-12-22 17:48 ` Jason Gunthorpe
  2017-12-24 21:00 ` Jarkko Sakkinen
@ 2018-01-02 14:46 ` Jarkko Sakkinen
  2 siblings, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2018-01-02 14:46 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: linux-kernel, Arnd Bergmann, Peter Huewe, Jason Gunthorpe,
	Greg Kroah-Hartman, linux-integrity

On Fri, Dec 22, 2017 at 06:47:41PM +0100, Javier Martinez Canillas wrote:
> The data field for the entries in the device tables are set but not used.
> 
> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

/Jarkko

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-02 14:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-22 17:47 [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables Javier Martinez Canillas
2017-12-22 17:48 ` Jason Gunthorpe
2017-12-24 21:00 ` Jarkko Sakkinen
2018-01-02 14:46 ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox