This is an automated email from Gerrit.

Marc Schink ([email protected]) just uploaded a new patch set to Gerrit, which you 
can find at http://openocd.zylin.com/5739

-- gerrit

commit 84364dec9b55cec55e90d30015a6487d3c3674ef
Author: Marc Schink <[email protected]>
Date:   Wed Jul 1 10:23:59 2020 +0200

    flash/nor/em357: Use 'bool' data type
    
    Change-Id: I251b62275d204fdc315cd167685799c15d4e7cf4
    Signed-off-by: Marc Schink <[email protected]>

diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c
index 38fb731..8295bcd 100644
--- a/src/flash/nor/em357.c
+++ b/src/flash/nor/em357.c
@@ -87,7 +87,7 @@ struct em357_options {
 struct em357_flash_bank {
        struct em357_options option_bytes;
        int ppage_size;
-       int probed;
+       bool probed;
 };
 
 static int em357_mass_erase(struct flash_bank *bank);
@@ -104,7 +104,7 @@ FLASH_BANK_COMMAND_HANDLER(em357_flash_bank_command)
        em357_info = malloc(sizeof(struct em357_flash_bank));
        bank->driver_priv = em357_info;
 
-       em357_info->probed = 0;
+       em357_info->probed = false;
 
        return ERROR_OK;
 }
@@ -679,7 +679,7 @@ static int em357_probe(struct flash_bank *bank)
        int page_size;
        uint32_t base_address = 0x08000000;
 
-       em357_info->probed = 0;
+       em357_info->probed = false;
 
        switch (bank->size) {
                case 0x10000:
@@ -740,7 +740,7 @@ static int em357_probe(struct flash_bank *bank)
                bank->sectors[i].is_protected = 1;
        }
 
-       em357_info->probed = 1;
+       em357_info->probed = true;
 
        return ERROR_OK;
 }

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to