#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);