1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

reset: Allow reset_get_by_name() with NULL name

This allows devm_reset_control_get(dev, NULL) to work and get the first
reset control, which is common in code ported from Linux.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20230122000252.53642-2-samuel@sholland.org
This commit is contained in:
Samuel Holland
2023-01-21 18:02:52 -06:00
committed by Sean Anderson
parent 2050f824e1
commit 5a675abfe7
3 changed files with 10 additions and 8 deletions

View File

@@ -238,7 +238,8 @@ int reset_get_bulk(struct udevice *dev, struct reset_ctl_bulk *bulk);
*
* @dev: The client device.
* @name: The name of the reset signal to request, within the client's
* list of reset signals.
* list of reset signals, or NULL to request the first reset
* signal in the list.
* @reset_ctl: A pointer to a reset control struct to initialize.
* Return: 0 if OK, or a negative error code.
*/