]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regmap: kunit: Introduce struct for test case parameters
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 8 Apr 2024 14:45:52 +0000 (15:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 8 Apr 2024 15:38:08 +0000 (16:38 +0100)
commit48bccea96fead1b212e19e38e50bf8e69287c45d
tree4e7b8258fa0fab29c8faca398167c94b75ee3dbd
parent7b7982f14315e0f6910e13b22ed38a47144a83ec
regmap: kunit: Introduce struct for test case parameters

Add a struct regmap_test_param and use it for all test cases
instead of passing various different types of param object
depending on the test case.

This makes it much easier and cleaner to expand what can be
parameterized.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://msgid.link/r/20240408144600.230848-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c