]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk: dos: rename write_mbr_partition to write_mbr_sector
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 23 Dec 2020 12:55:10 +0000 (13:55 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:38:00 +0000 (14:38 -0500)
write_mbr_partition() function name is a bit misleading, so rename it to
write_mbr_sector(). This is a preparation for adding code for writing a
complete MBR partition layout.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
disk/part_dos.c
drivers/fastboot/fb_mmc.c
include/part.h

index 04f53106f7ce8762aa89468397c969bb0fd4ae65..ef706fb59cbbe75cddfb5f8beb754f306180cd03 100644 (file)
@@ -329,7 +329,7 @@ int is_valid_dos_buf(void *buf)
        return test_block_type(buf) == DOS_MBR ? 0 : -1;
 }
 
-int write_mbr_partition(struct blk_desc *dev_desc, void *buf)
+int write_mbr_sector(struct blk_desc *dev_desc, void *buf)
 {
        if (is_valid_dos_buf(buf))
                return -1;
index ae8e8e512f2ecd8dacc26cee210f1fd1aaaa3973..4e26cef9417b3ec239dfa45ffb95d20aa8459a79 100644 (file)
@@ -508,7 +508,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
                        fastboot_fail("invalid MBR partition", response);
                        return;
                }
-               if (write_mbr_partition(dev_desc, download_buffer)) {
+               if (write_mbr_sector(dev_desc, download_buffer)) {
                        printf("%s: writing MBR partition failed\n", __func__);
                        fastboot_fail("writing MBR partition failed",
                                      response);
index 55be724d20f9a814a707adc20d25721ad16c6548..67b8b2a5cc27f4f2df8f324859ce3245ea4ed59b 100644 (file)
@@ -465,14 +465,14 @@ int get_disk_guid(struct blk_desc *dev_desc, char *guid);
 int is_valid_dos_buf(void *buf);
 
 /**
- * write_mbr_partition() - write DOS MBR
+ * write_mbr_sector() - write DOS MBR
  *
  * @param dev_desc - block device descriptor
  * @param buf - buffer which contains the MBR
  *
  * @return - '0' on success, otherwise error
  */
-int write_mbr_partition(struct blk_desc *dev_desc, void *buf);
+int write_mbr_sector(struct blk_desc *dev_desc, void *buf);
 
 #endif