clk: tests: add clk_hw_get_dev() and clk_hw_get_of_node() tests
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 17 Apr 2025 13:44:23 +0000 (15:44 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 20 Jun 2025 07:15:39 +0000 (00:15 -0700)
commitac32d031f508e46c19ab38d6ba8b53fc28df9945
treefafb2fcd4a8d4e6ceaad47bea7a7b91497973294
parentb06ba1c353b80367804b9ca7d7dbb9b6ea3aec33
clk: tests: add clk_hw_get_dev() and clk_hw_get_of_node() tests

Add kunit test suites clk_hw_get_dev() and clk_hw_get_of_node()
for clocks registered with clk_hw_register() and of_clk_hw_register()

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20250417-clk-hw-get-helpers-v1-2-7743e509612a@baylibre.com
Reviewed-by: Brian Masney <bmasney@redhat.com>
[sboyd@kernel.org: Drop genparams, rename tests, drop inits,
combine suites, add test for non-DT platform device]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/Makefile
drivers/clk/clk_test.c
drivers/clk/kunit_clk_hw_get_dev_of_node.dtso [new file with mode: 0644]