xiaoxiang781216 commented on code in PR #6965:
URL: https://github.com/apache/incubator-nuttx/pull/6965#discussion_r988527449


##########
arch/arm/src/rp2040/rp2040_flash_mtd.c:
##########
@@ -155,17 +155,18 @@ extern const uint8_t rp2040_smart_flash_end[0];
 static struct rp2040_flash_dev_s my_dev =
 {
   .mtd_dev =
-    {
-      rp2040_flash_erase,
-      rp2040_flash_block_read,
-      rp2040_flash_block_write,
-      rp2040_flash_byte_read,
+  {
+    rp2040_flash_erase,
+    rp2040_flash_block_read,
+    rp2040_flash_block_write,
+    rp2040_flash_byte_read,
 #ifdef CONFIG_MTD_BYTE_WRITE
-      NULL,
+    NULL,
 #endif
-      rp2040_flash_ioctl,
-      "rp_flash"
-    }
+    rp2040_flash_ioctl,
+    "rp_flash"
+  },
+  .lock = NXMUTEX_INITIALIZER,
 };
 
 static bool initialized = false;

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to