// SPDX-License-Identifier: GPL-2.0 /* * Kunit tests for clk fractional divider */ #include <linux/clk-provider.h> #include <kunit/test.h> #include "clk-fractional-divider.h" /* * Test the maximum denominator case for fd clock without flags. * * Expect the highest possible denominator to be used in order to get as close as possible to the * requested rate. */ static void clk_fd_test_approximation_max_denominator(struct kunit *test) { … } /* * Test the maximum numerator case for fd clock without flags. * * Expect the highest possible numerator to be used in order to get as close as possible to the * requested rate. */ static void clk_fd_test_approximation_max_numerator(struct kunit *test) { … } /* * Test the maximum denominator case for zero based fd clock. * * Expect the highest possible denominator to be used in order to get as close as possible to the * requested rate. */ static void clk_fd_test_approximation_max_denominator_zero_based(struct kunit *test) { … } /* * Test the maximum numerator case for zero based fd clock. * * Expect the highest possible numerator to be used in order to get as close as possible to the * requested rate. */ static void clk_fd_test_approximation_max_numerator_zero_based(struct kunit *test) { … } static struct kunit_case clk_fd_approximation_test_cases[] = …; /* * Test suite for clk_fractional_divider_general_approximation(). */ static struct kunit_suite clk_fd_approximation_suite = …; kunit_test_suites(…); MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …;