dfu: align array in dfu_get_dev_type with enum dfu_device_type
PATCH 1/1 dfu: align array in dfu_get_dev_type with enum dfu_device_type
Signed-off-by Patrick Delaunay <[email protected]>
---
drivers/dfu/dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dfu/dfu.c +1 -1
@@ -482,7 +482,7 @@ int dfu_config_entities(char *env, char *interface, char *devstr)const char *dfu_get_dev_type (enum dfu_device_type t) { -const char *dev_t[] = {NULL ,"eMMC" ,"OneNAND" ,"NAND" ,"RAM" }; +const char *dev_t[] = {NULL ,"eMMC" ,"OneNAND" ,"NAND" ,"RAM" ,"SF" };return dev_t[t]; }
Signature · 1 line
1.9.1
PATCH 1/1 dfu: align array in dfu_get_dev_type with enum dfu_device_type
Hi Patrick,
Quoted 12 lines
Signed-off-by Patrick Delaunay <[email protected]>---
drivers/dfu/dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dfu/dfu.c +0
-0
drivers/dfu/dfu.c int dfu_config_entities(char *env, char · line 488
Quoted 8 lines
drivers/dfu/dfu.c +1
-1@@ -482,7 +482,7 @@ int dfu_config_entities(char *env, char *interface, char *devstr)const char *dfu_get_dev_type (enum dfu_device_type t) { -const char *dev_t[] = {NULL ,"eMMC" ,"OneNAND" ,"NAND" , "RAM" }; +const char *dev_t[] = {NULL ,"eMMC" ,"OneNAND" ,"NAND" ,"RAM" ,"SF" };return dev_t[t]; }
Applied to to u-boot-dfu (and PR sent to ML).
Thanks for patch.
Signature · 5 lines
Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group