]> git.dujemihanovic.xyz Git - u-boot.git/commit
reset: Allow reset_get_by_name() with NULL name
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Jan 2023 00:02:52 +0000 (18:02 -0600)
committerSean Anderson <seanga2@gmail.com>
Sun, 12 Feb 2023 18:44:20 +0000 (13:44 -0500)
commit5a675abfe7c3f12b475cc0a6c9074a9fbe0b6bb6
tree7238a9ae0b06ea7d60c82497af56334efee234cb
parent2050f824e1367cb227d8e13a91c98577987fe413
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
drivers/reset/reset-uclass.c
include/reset.h
test/dm/reset.c