什么是结构成员' pm'在驱动程序结构?

时间:2014-03-24 08:59:06

标签: linux structure device-driver spi

' pm'和' of_match_table'在以下spi驱动程序代码中

static struct platform_driver omap2_mcspi_driver = {
         .driver = {
                 .name =         "omap2_mcspi",
                 .owner =        THIS_MODULE,
                 .pm =           &omap2_mcspi_pm_ops,
                 .of_match_table = omap_mcspi_of_match,
         },
         .probe =        omap2_mcspi_probe,
         .remove =       omap2_mcspi_remove,
 };

1 个答案:

答案 0 :(得分:0)

首先,看看From where platform device gets it name。您可以在ACPI based device enumeration找到更多详细信息。