Skip to content

Commit

Permalink
tpm/tpm_i2c_infineon.c: Add OF attributes type and name to the of_dev…
Browse files Browse the repository at this point in the history
…ice_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>
  • Loading branch information
Peter Huewe authored and Kent Yoder committed Apr 12, 2013
1 parent 3320280 commit 21dc02e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions drivers/char/tpm/tpm_i2c_infineon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 21dc02e

Please sign in to comment.