一、code 基本框架 static const struct of_device_id sgo_drv_match[] = { { .compatible = "sgo_comp", .data = &sgo_data}, { } }