]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: Add test managed clk provider/consumer APIs
authorStephen Boyd <sboyd@kernel.org>
Thu, 18 Jul 2024 21:05:05 +0000 (14:05 -0700)
committerStephen Boyd <sboyd@kernel.org>
Mon, 29 Jul 2024 22:33:12 +0000 (15:33 -0700)
commitd690bd11e87adfc684265209a5aabd1f58fa367e
tree187f63373b8beca42e945d7f755b51e405ddeaaf
parent5ac79730324c6f37106ce397586020ffe6e8e234
clk: Add test managed clk provider/consumer APIs

Unit tests are more ergonomic and simpler to understand if they don't
have to hoist a bunch of code into the test harness init and exit
functions. Add some test managed wrappers for the clk APIs so that clk
unit tests can write more code in the actual test and less code in the
harness.

Only add APIs that are used for now. More wrappers can be added in the
future as necessary.

Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Cc: Rae Moar <rmoar@google.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240718210513.3801024-7-sboyd@kernel.org
Documentation/dev-tools/kunit/api/clk.rst [new file with mode: 0644]
Documentation/dev-tools/kunit/api/index.rst
drivers/clk/Makefile
drivers/clk/clk_kunit_helpers.c [new file with mode: 0644]
include/kunit/clk.h [new file with mode: 0644]