summaryrefslogtreecommitdiff
path: root/include/dm/uclass.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-11-03 17:23:29 -0600
committerTom Rini <trini@konsulko.com>2024-11-03 21:27:13 -0600
commitbf066dc3ebfe79ed24f889a41abe43d48d26c454 (patch)
tree7a967c47cb8d2bc242b241f35d3dcdaee257a883 /include/dm/uclass.h
parent93cfcb026a124b133e85a025c51fcc6c85bc385e (diff)
parentdc24948a457e2f5cb7c518a9458be851b8b7e9ea (diff)
Merge tag 'dm-pull-2nov24' of https://source.denx.de/u-boot/custodians/u-boot-dm
CI: https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/23152 CI: https://dev.azure.com/simon0972/u-boot/_build/results?buildId=71&view=results - alist enhancements and fixes - minor test and sandbox fixes - some more x86/coreboot patches
Diffstat (limited to 'include/dm/uclass.h')
-rw-r--r--include/dm/uclass.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/dm/uclass.h b/include/dm/uclass.h
index 456eef7f2f3..c2793040923 100644
--- a/include/dm/uclass.h
+++ b/include/dm/uclass.h
@@ -436,6 +436,17 @@ int uclass_first_device_drvdata(enum uclass_id id, ulong driver_data,
struct udevice **devp);
/**
+ * uclass_try_first_device()- See if there is a device for a uclass
+ *
+ * If the uclass exists, this returns the first device on that uclass, without
+ * probing it. If the uclass does not exist, it gives up
+ *
+ * @id: Uclass ID to check
+ * Return: Pointer to device, if found, else NULL
+ */
+struct udevice *uclass_try_first_device(enum uclass_id id);
+
+/**
* uclass_probe_all() - Probe all devices based on an uclass ID
*
* This function probes all devices associated with a uclass by