这个结构体用来做驱动和设备的匹配,of_match_device函数可以拿到这个结构体:
struct of_device_id
{
char name[32];
char type[32];
char compatible[128];
#ifdef __KERNEL__
const void *data;//私有数据
#else
kernel_ulong_t data;
#endif
};
这个结构体用来做驱动和设备的匹配,of_match_device函数可以拿到这个结构体:
struct of_device_id
{
char name[32];
char type[32];
char compatible[128];
#ifdef __KERNEL__
const void *data;//私有数据
#else
kernel_ulong_t data;
#endif
};