clk: tests: Make clk_register_clk_parent_data_device_driver() common
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 20 Jun 2025 06:46:03 +0000 (23:46 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 20 Jun 2025 07:15:06 +0000 (00:15 -0700)
commitb06ba1c353b80367804b9ca7d7dbb9b6ea3aec33
treef7128f30b141fc6ecf9bb07f74870ff51b08567a
parent5f4081d6fafec6c9dca9e7990e783b70db854a5c
clk: tests: Make clk_register_clk_parent_data_device_driver() common

Rename clk_register_clk_parent_data_device_driver() to
kunit_of_platform_driver_dev() and have it return a struct device
pointer while accepting a match table. This will be useful to
find the device associated with an OF node for more tests than
only the clk_parent_data tests.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
[sboyd@kernel.org: Split out from next patch, carry SoB and
authorship, rename API, return device pointer]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk_test.c