mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
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:
@@ -624,7 +624,7 @@ __maybe_unused static void *dp_fill(void *buf, struct udevice *dev)
|
||||
DEVICE_PATH_SUB_TYPE_MSG_SD :
|
||||
DEVICE_PATH_SUB_TYPE_MSG_MMC;
|
||||
sddp->dp.length = sizeof(*sddp);
|
||||
sddp->slot_number = dev->seq;
|
||||
sddp->slot_number = dev_seq(dev);
|
||||
return &sddp[1];
|
||||
}
|
||||
#endif
|
||||
@@ -677,7 +677,7 @@ __maybe_unused static void *dp_fill(void *buf, struct udevice *dev)
|
||||
DEVICE_PATH_SUB_TYPE_MSG_SD :
|
||||
DEVICE_PATH_SUB_TYPE_MSG_MMC;
|
||||
sddp->dp.length = sizeof(*sddp);
|
||||
sddp->slot_number = dev->seq;
|
||||
sddp->slot_number = dev_seq(dev);
|
||||
|
||||
return &sddp[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user