1. 一个驱动中要匹配多个器件
drivers/media/i2c/adv748x/adv748x-core.c static const struct of_device_id adv748x_of_table[] = { { .compatible = "adi,adv7481", }, { .compatible = "adi,adv7482", }, { } };
本文参考链接:https://www.cnblogs.com/hellokitty2/p/9100569.html
1. 一个驱动中要匹配多个器件
drivers/media/i2c/adv748x/adv748x-core.c static const struct of_device_id adv748x_of_table[] = { { .compatible = "adi,adv7481", }, { .compatible = "adi,adv7482", }, { } };