dm: Avoid accessing seq directly
At present various drivers etc. access the device's 'seq' member directly. This makes it harder to change the meaning of that member. Change access to go through a function instead. The drivers/i2c/lpc32xx_i2c.c file is left unchanged for now. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -34,7 +34,7 @@ static int do_misc_list(struct cmd_tbl *cmdtp, int flag,
|
||||
for (uclass_first_device(UCLASS_MISC, &dev);
|
||||
dev;
|
||||
uclass_next_device(&dev)) {
|
||||
printf("%-20s %5d %10s\n", dev->name, dev->seq,
|
||||
printf("%-20s %5d %10s\n", dev->name, dev_seq(dev),
|
||||
dev->driver->name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user