diff options
| author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:40:09 -0700 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
| commit | 2462139fdd4f1f5eb50427e287a802b9c9eef097 (patch) | |
| tree | 894eea47a05bffc74ee70162ebe0eb065540de68 /include | |
| parent | 82021e31a71ae51bea1226e58727dd3163a26895 (diff) | |
| download | u-boot-2462139fdd4f1f5eb50427e287a802b9c9eef097.tar.gz u-boot-2462139fdd4f1f5eb50427e287a802b9c9eef097.tar.xz u-boot-2462139fdd4f1f5eb50427e287a802b9c9eef097.zip | |
dm: core: Rename sqq to seq_
Now that the sequence-numbering migration is complete, rename this member
back to seq_, adding an underscore to indicate it is internal to driver
model.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/dm/device.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index daebd6eb68..a063bbaa17 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -136,11 +136,12 @@ enum { * @child_head: List of children of this device * @sibling_node: Next device in list of all devices * @flags: Flags for this device DM_FLAG_... - * @seq: Allocated sequence number for this device (-1 = none). This is set up + * @seq_: Allocated sequence number for this device (-1 = none). This is set up * when the device is bound and is unique within the device's uclass. If the * device has an alias in the devicetree then that is used to set the sequence * number. Otherwise, the next available number is used. Sequence numbers are - * used by certain commands that need device to be numbered (e.g. 'mmc dev') + * used by certain commands that need device to be numbered (e.g. 'mmc dev'). + * (do not access outside driver model) * @devres_head: List of memory allocations associated with this device. * When CONFIG_DEVRES is enabled, devm_kmalloc() and friends will * add to this list. Memory so-allocated will be freed @@ -163,7 +164,7 @@ struct udevice { struct list_head child_head; struct list_head sibling_node; uint32_t flags; - int sqq; + int seq_; #ifdef CONFIG_DEVRES struct list_head devres_head; #endif @@ -190,7 +191,7 @@ static inline bool dev_has_of_node(struct udevice *dev) static inline int dev_seq(const struct udevice *dev) { - return dev->sqq; + return dev->seq_; } /** |
