]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fastboot: getvar: correct/rename "has_slot" to "has-slot"
authorEugeniu Rosca <erosca@de.adit-jv.com>
Tue, 26 Mar 2019 16:46:14 +0000 (17:46 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 21 Apr 2019 08:26:51 +0000 (10:26 +0200)
Since its inception in upstream fastboot android-n-preview-1 [1],
"has-slot" option has never taken the form of "has_slot". Amongst the
users of "getvar has-slot:" is the upstream bootloadertest.py [2].

Current U-Boot "has_slot" version must be a typo. Fix it.

[1] https://android.googlesource.com/platform/system/core/+/a797479bd51c
    ("Fix fastboot variable name")
[2] https://android.googlesource.com/platform/system/extras/+/72de393e118e3
    ("Bootloader verification for AndroidThings.")

Fixes: f73a7df984a9 ("net: fastboot: Merge AOSP UDP fastboot")
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Acked-by: Alex Kiernan <alex.kiernan@gmail.com>
drivers/fastboot/fb_getvar.c

index 4d264c985d7e9593932b270c98a0477f126cc52e..91a774a345b61c3f665a1d274a2e07592c6fd0e3 100644 (file)
@@ -62,7 +62,7 @@ static const struct {
                .variable = "slot-suffixes",
                .dispatch = getvar_slot_suffixes
        }, {
-               .variable = "has_slot",
+               .variable = "has-slot",
                .dispatch = getvar_has_slot
 #if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)
        }, {