ソースを参照

[MTD-NAND] Add private data pointer. (#5974)

* Disable TRNG function in default configuration.

* Fix building issue

* To catch context of upper file system.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
Wayne 3 年 前
コミット
37d9921aa8
1 ファイル変更3 行追加0 行削除
  1. 3 0
      components/drivers/include/drivers/mtd_nand.h

+ 3 - 0
components/drivers/include/drivers/mtd_nand.h

@@ -47,7 +47,10 @@ struct rt_mtd_nand_device
 
     /* operations interface */
     const struct rt_mtd_nand_driver_ops *ops;
+
+    void *priv;
 };
+typedef struct rt_mtd_nand_device* rt_mtd_nand_t;
 
 struct rt_mtd_nand_driver_ops
 {