宋超 3 лет назад
Родитель
Сommit
647806f709
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      include/rtdef.h

+ 2 - 2
include/rtdef.h

@@ -1102,7 +1102,7 @@ struct rt_device
 {
     struct rt_object          parent;                   /**< inherit from rt_object */
 #ifdef RT_USING_DM    
-    struct rt_driver    *drv;
+    struct rt_driver *drv;
     void *dtb_node; 
 #endif    
     enum rt_device_class_type type;                     /**< device type */
@@ -1166,7 +1166,7 @@ struct rt_driver
     int (*probe_init)(struct rt_device *dev);
     int (*remove)(struct rt_device *dev);
     const void *ops;    /* driver-specific operations */
-    void *drvpriv_data;
+    void *drv_priv_data;
 };
 typedef struct rt_driver *rt_driver_t;