From 37d9921aa845a98f37565611885925e5dfd5cb97 Mon Sep 17 00:00:00 2001 From: Wayne Date: Mon, 23 May 2022 01:47:07 +0800 Subject: [PATCH] [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 --- components/drivers/include/drivers/mtd_nand.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/drivers/include/drivers/mtd_nand.h b/components/drivers/include/drivers/mtd_nand.h index a452da61dd..991dde4901 100644 --- a/components/drivers/include/drivers/mtd_nand.h +++ b/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 {