mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
fs: Add model field to geometry and mtd_geometry_s
the model is very useful to track the device info Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
30aa0ee700
commit
9f027208d4
@@ -443,6 +443,8 @@ static int filemtd_ioctl(FAR struct mtd_dev_s *dev, int cmd,
|
||||
|
||||
if (geo)
|
||||
{
|
||||
memset(geo, 0, sizeof(*geo));
|
||||
|
||||
/* Populate the geometry structure with information need to
|
||||
* know the capacity and how to access the device.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user