diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-03-04 16:08:54 -0500 |
---|---|---|
committer | Kent Yoder <key@linux.vnet.ibm.com> | 2013-04-12 13:17:29 -0400 |
commit | 21dc02eab989d260fd9e22b72a29ac139a727cdd (patch) | |
tree | 8e9c9d4931dd74d0eb6b0f78af50a3162ded53b8 /drivers/char | |
parent | 3320280b6fd7df65e3f211c0e4db66f637ca035f (diff) |
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.
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tpm/tpm_i2c_infineon.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index bd9a2958dc39..d83bb8c0217b 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c | |||
@@ -694,9 +694,24 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_table); | |||
694 | 694 | ||
695 | #ifdef CONFIG_OF | 695 | #ifdef CONFIG_OF |
696 | static const struct of_device_id tpm_tis_i2c_of_match[] = { | 696 | static const struct of_device_id tpm_tis_i2c_of_match[] = { |
697 | { .compatible = "infineon,tpm_i2c_infineon", .data = (void *)0 }, | 697 | { |
698 | { .compatible = "infineon,slb9635tt", .data = (void *)0 }, | 698 | .name = "tpm_i2c_infineon", |
699 | { .compatible = "infineon,slb9645tt", .data = (void *)1 }, | 699 | .type = "tpm", |
700 | .compatible = "infineon,tpm_i2c_infineon", | ||
701 | .data = (void *)0 | ||
702 | }, | ||
703 | { | ||
704 | .name = "slb9635tt", | ||
705 | .type = "tpm", | ||
706 | .compatible = "infineon,slb9635tt", | ||
707 | .data = (void *)0 | ||
708 | }, | ||
709 | { | ||
710 | .name = "slb9645tt", | ||
711 | .type = "tpm", | ||
712 | .compatible = "infineon,slb9645tt", | ||
713 | .data = (void *)1 | ||
714 | }, | ||
700 | {}, | 715 | {}, |
701 | }; | 716 | }; |
702 | MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match); | 717 | MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match); |