]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
blk: Drop IF_TYPE_DOC
authorSimon Glass <sjg@chromium.org>
Fri, 12 Aug 2022 01:34:52 +0000 (19:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 16 Sep 2022 15:05:16 +0000 (11:05 -0400)
This doesn't seem to be used for anything and it isn't clear what it is.
It dates from the first U-Boot commit.

Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part.c
drivers/block/blk-uclass.c
include/blk.h

index 9594bb432c4b0b1f0db3c2acf935673760ce94e7..5f64da54e5478b4d8908def814e119ddebd9d442 100644 (file)
@@ -150,9 +150,6 @@ void dev_print (struct blk_desc *dev_desc)
        case IF_TYPE_VIRTIO:
                printf("%s VirtIO Block Device\n", dev_desc->vendor);
                break;
-       case IF_TYPE_DOC:
-               puts("device type DOC\n");
-               return;
        case IF_TYPE_UNKNOWN:
                puts("device type unknown\n");
                return;
@@ -266,9 +263,6 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc)
        case IF_TYPE_USB:
                puts ("USB");
                break;
-       case IF_TYPE_DOC:
-               puts ("DOC");
-               break;
        case IF_TYPE_MMC:
                puts ("MMC");
                break;
@@ -782,9 +776,6 @@ void part_set_generic_name(const struct blk_desc *dev_desc,
        case IF_TYPE_USB:
                devtype = "usbd";
                break;
-       case IF_TYPE_DOC:
-               devtype = "docd";
-               break;
        case IF_TYPE_MMC:
        case IF_TYPE_SD:
                devtype = "mmcsd";
index 1a6e8f8c29d80a0b6cf96152bd350de015a31105..f16cb279d4e084a48409a00b1aab9a740fe4cf46 100644 (file)
@@ -22,7 +22,6 @@ static const char *if_typename_str[IF_TYPE_COUNT] = {
        [IF_TYPE_SCSI]          = "scsi",
        [IF_TYPE_ATAPI]         = "atapi",
        [IF_TYPE_USB]           = "usb",
-       [IF_TYPE_DOC]           = "doc",
        [IF_TYPE_MMC]           = "mmc",
        [IF_TYPE_SD]            = "sd",
        [IF_TYPE_SATA]          = "sata",
@@ -39,7 +38,6 @@ static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
        [IF_TYPE_SCSI]          = UCLASS_SCSI,
        [IF_TYPE_ATAPI]         = UCLASS_INVALID,
        [IF_TYPE_USB]           = UCLASS_MASS_STORAGE,
-       [IF_TYPE_DOC]           = UCLASS_INVALID,
        [IF_TYPE_MMC]           = UCLASS_MMC,
        [IF_TYPE_SD]            = UCLASS_INVALID,
        [IF_TYPE_SATA]          = UCLASS_AHCI,
index 5bdffe74015200b1e155b612bd73e736c36b1688..1898ebdda543a19d4967bf611a361e0f9b1e2dda 100644 (file)
@@ -33,7 +33,6 @@ enum if_type {
        IF_TYPE_SCSI,
        IF_TYPE_ATAPI,
        IF_TYPE_USB,
-       IF_TYPE_DOC,
        IF_TYPE_MMC,
        IF_TYPE_SD,
        IF_TYPE_SATA,