Skip to contentSkip to conversation

tpm/tpm_i2c_infineon.c: Add OF attributes type and name to the of_device_id table entries

PATCH New Peter Huewe 1 participant 1 message Mar 4, 2013 TPM device driver

lore
Share & tools
lore

Peter Huewe

author maintainer
#0 lore raw

PATCH 1/1 tpm/tpm_i2c_infineon.c: Add OF attributes type and name to the of_device_id table entries

As the subject says.
It's probably a good idea to have these fields populated.

---
 drivers/char/tpm/tpm_i2c_infineon.c | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
drivers/char/tpm/tpm_i2c_infineon.c +18 -3
index bd9a295..d83bb8c 100644
@@ -694,9 +694,24 @@ 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 },
+	{
+		.name = "tpm_i2c_infineon",
+		.type = "tpm",
+		.compatible = "infineon,tpm_i2c_infineon",
+		.data = (void *)0
+	},
+	{
+		.name = "slb9635tt",
+		.type = "tpm",
+		.compatible = "infineon,slb9635tt",
+		.data = (void *)0
+	},
+	{
+		.name = "slb9645tt",
+		.type = "tpm",
+		.compatible = "infineon,slb9645tt",
+		.data = (void *)1
+	},
 	{},
 };
 MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match);
Signature · 1 line
1.7.12.4