On Sat, 21 Jan 2023 at 17:02, Samuel Holland <sam...@sholland.org> wrote:
>
> This allows devm_clock_get(dev, NULL) to work and get the first clock,
> which is common in code ported from Linux.
>
> Signed-off-by: Samuel Holland <sam...@sholland.org>
> ---
>
> Changes in v2:
>  - Move index error check inside if statement
>  - Update function comment
>  - Add unit test
>
>  drivers/clk/clk-uclass.c | 12 +++++++-----
>  include/clk.h            |  4 ++--
>  test/dm/clk.c            |  5 +++++
>  3 files changed, 14 insertions(+), 7 deletions(-)
>

Reviewed-by: Simon Glass <s...@chromium.org>

Reply via email to