]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: Drop use of old sequence numbers in commands
authorSimon Glass <sjg@chromium.org>
Thu, 17 Dec 2020 04:20:31 +0000 (21:20 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 03:32:21 +0000 (20:32 -0700)
Several commands use sequence numbers. Update them to use the new ones.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/axi.c
cmd/i2c.c
cmd/osd.c
drivers/core/dump.c

index f7e206c04a78664126104bc9e26d47b85799a22f..c72197ee82b2ab97b85008ac365f2cafd667d986 100644 (file)
--- a/cmd/axi.c
+++ b/cmd/axi.c
@@ -33,9 +33,9 @@ static void show_bus(struct udevice *bus)
 {
        struct udevice *dev;
 
-       printf("Bus %d:\t%s", bus->req_seq, bus->name);
+       printf("Bus %d:\t%s", dev_seq(bus), bus->name);
        if (device_active(bus))
-               printf("  (active %d)", dev_seq(bus));
+               printf("  (active)");
        printf("\n");
        for (device_find_first_child(bus, &dev);
             dev;
index ac384550016f82b47fe516f7cd0716d2fffde91c..aae2dd41feee299712899d4ef1c65978b9ce9b12 100644 (file)
--- a/cmd/i2c.c
+++ b/cmd/i2c.c
@@ -1700,7 +1700,7 @@ static void show_bus(struct udevice *bus)
 {
        struct udevice *dev;
 
-       printf("Bus %d:\t%s", bus->req_seq, bus->name);
+       printf("Bus %d:\t%s", dev_seq(bus), bus->name);
        if (device_active(bus))
                printf("  (active %d)", dev_seq(bus));
        printf("\n");
index 9b8fd5c921e4af9fd58c58e23ac0e49d8d5dfa07..703d640b04e6fda93bceb43c9a0ea6c95a07724e 100644 (file)
--- a/cmd/osd.c
+++ b/cmd/osd.c
@@ -75,9 +75,9 @@ static int osd_get_osd_cur(struct udevice **osdp)
  */
 static void show_osd(struct udevice *osd)
 {
-       printf("OSD %d:\t%s", osd->req_seq, osd->name);
+       printf("OSD %d:\t%s", dev_seq(osd), osd->name);
        if (device_active(osd))
-               printf("  (active %d)", dev_seq(osd));
+               printf("  (active)");
        printf("\n");
 }
 
index 33cfee6c762883b48c7f22255e4efb64a8fe3997..201254732124b7595404be1e789b504947348585 100644 (file)
@@ -67,8 +67,8 @@ static void dm_display_line(struct udevice *dev, int index)
        printf("%-3i %c %s @ %08lx", index,
               dev->flags & DM_FLAG_ACTIVATED ? '*' : ' ',
               dev->name, (ulong)map_to_sysmem(dev));
-       if (dev_seq(dev) != -1 || dev->req_seq != -1)
-               printf(", seq %d, (req %d)", dev_seq(dev), dev->req_seq);
+       if (dev->sqq != -1)
+               printf(", seq %d", dev_seq(dev));
        puts("\n");
 }