aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass2020-12-16 21:20:31 -0700
committerSimon Glass2020-12-18 20:32:21 -0700
commit36c03d183041e57714a909f6d020ac10ef279e3b (patch)
treec938aafffd85a255b583539f707162f4ae9dabab /cmd
parenta133e2179a729036e7750b497c1c38f9f6a3a835 (diff)
cmd: Drop use of old sequence numbers in commands
Several commands use sequence numbers. Update them to use the new ones. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/axi.c4
-rw-r--r--cmd/i2c.c2
-rw-r--r--cmd/osd.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/cmd/axi.c b/cmd/axi.c
index f7e206c04a7..c72197ee82b 100644
--- 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;
diff --git a/cmd/i2c.c b/cmd/i2c.c
index ac384550016..aae2dd41fee 100644
--- 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");
diff --git a/cmd/osd.c b/cmd/osd.c
index 9b8fd5c921e..703d640b04e 100644
--- 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");
}