在查看设备驱动时,经常看到如下结构。
为什么会有一个of_match_ptr呢?
查看源代码,在include/linux/of.h里面。
#ifdef CONFIG_OF
...
#define of_match_ptr(_ptr) (_ptr)
...
#else /* CONFIG_OF */
...
在查看设备驱动时,经常看到如下结构。
为什么会有一个of_match_ptr呢?
查看源代码,在include/linux/of.h里面。
#ifdef CONFIG_OF
...
#define of_match_ptr(_ptr) (_ptr)
...
#else /* CONFIG_OF */
...