Add a dummy nand_get_info for ipodnano3g and ipodnano4g

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit e3372f495ef36732548ea4e50bdbe9a2b7dfd33a
Author: Vencislav Atanasov <[email protected]>
Date:   Tue Jan 6 22:05:33 2026 +0200

    Add a dummy nand_get_info for ipodnano3g and ipodnano4g
    
    All non-simulator and non-hostfs targets are required to implement storage_get_info() since 04dc052a
    
    Change-Id: I87febd12e101797d9cbbffc0e2e46efc2dace9da

diff --git a/firmware/target/arm/s5l8702/ipodnano3g/nand-nano3g.c b/firmware/target/arm/s5l8702/ipodnano3g/nand-nano3g.c
index 93c88583a9..9115df03aa 100644
--- a/firmware/target/arm/s5l8702/ipodnano3g/nand-nano3g.c
+++ b/firmware/target/arm/s5l8702/ipodnano3g/nand-nano3g.c
@@ -20,6 +20,7 @@
  ****************************************************************************/
 
 #include "mv.h"
+#include "storage.h"
 
 int nand_init(void)
 {
@@ -61,3 +62,15 @@ int nand_event(long id, intptr_t data)
 
     return 0;
 }
+
+#ifdef STORAGE_GET_INFO
+void nand_get_info(IF_MD(int drive,) struct storage_info *info)
+{
+    IF_MD((void)drive);
+    info->sector_size = SECTOR_SIZE;
+    info->num_sectors = 0;
+    info->vendor = "";
+    info->product = "";
+    info->revision = "";
+}
+#endif
diff --git a/firmware/target/arm/s5l8702/ipodnano4g/nand-nano4g.c b/firmware/target/arm/s5l8702/ipodnano4g/nand-nano4g.c
index 93c88583a9..9115df03aa 100644
--- a/firmware/target/arm/s5l8702/ipodnano4g/nand-nano4g.c
+++ b/firmware/target/arm/s5l8702/ipodnano4g/nand-nano4g.c
@@ -20,6 +20,7 @@
  ****************************************************************************/
 
 #include "mv.h"
+#include "storage.h"
 
 int nand_init(void)
 {
@@ -61,3 +62,15 @@ int nand_event(long id, intptr_t data)
 
     return 0;
 }
+
+#ifdef STORAGE_GET_INFO
+void nand_get_info(IF_MD(int drive,) struct storage_info *info)
+{
+    IF_MD((void)drive);
+    info->sector_size = SECTOR_SIZE;
+    info->num_sectors = 0;
+    info->vendor = "";
+    info->product = "";
+    info->revision = "";
+}
+#endif
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.