summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-16 21:20:08 -0700
committerSimon Glass <sjg@chromium.org>2020-12-18 20:32:21 -0700
commitd03adb4a78d18b5506350b3ac72ab2f18f1ed160 (patch)
treee5d27de4a64912a3152d490d33638d60b07d7a36 /include
parent8b85dfc675f12de8d04126c07f3c796965b990c2 (diff)
downloadu-boot-d03adb4a78d18b5506350b3ac72ab2f18f1ed160.tar.gz
u-boot-d03adb4a78d18b5506350b3ac72ab2f18f1ed160.tar.xz
u-boot-d03adb4a78d18b5506350b3ac72ab2f18f1ed160.zip
dm: core: Update uclass_find_next_free_req_seq() args
At present this is passed a uclass ID and it has to do a lookup. The callers all have the uclass pointer, except for the I2C uclass where the code will soon be deleted. Update the argument to a uclass * instead of an ID since it is more efficient. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/uclass-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dm/uclass-internal.h b/include/dm/uclass-internal.h
index 6e3f15c2b0..2c21871e0f 100644
--- a/include/dm/uclass-internal.h
+++ b/include/dm/uclass-internal.h
@@ -19,10 +19,10 @@
* maximum req_seq of the uclass + 1.
* This allows assiging req_seq number in the binding order.
*
- * @id: Id number of the uclass
+ * @uc: uclass to check
* @return The next free req_seq number
*/
-int uclass_find_next_free_req_seq(enum uclass_id id);
+int uclass_find_next_free_req_seq(struct uclass *uc);
/**
* uclass_get_device_tail() - handle the end of a get_device call