regmap: kunit: Fix repeated test param
authorCheng-Cheng Lo <locc@google.com>
Tue, 29 Oct 2024 08:19:41 +0000 (16:19 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 29 Oct 2024 18:56:49 +0000 (18:56 +0000)
There're duplicated elements in the test param real_cache_types_list. The
second one shoulde have cache type REGCACHE_MAPLE.

Signed-off-by: Cheng-Cheng Lo <locc@google.com>
Link: https://patch.msgid.link/20241029081941.3264566-1-locc@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c

index a42c738..64ea340 100644 (file)
@@ -126,7 +126,7 @@ static const struct regmap_test_param real_cache_types_list[] = {
        { .cache = REGCACHE_RBTREE, .from_reg = 0x2003 },
        { .cache = REGCACHE_RBTREE, .from_reg = 0x2004 },
        { .cache = REGCACHE_MAPLE,  .from_reg = 0 },
-       { .cache = REGCACHE_RBTREE, .from_reg = 0, .fast_io = true },
+       { .cache = REGCACHE_MAPLE,  .from_reg = 0, .fast_io = true },
        { .cache = REGCACHE_MAPLE,  .from_reg = 0x2001 },
        { .cache = REGCACHE_MAPLE,  .from_reg = 0x2002 },
        { .cache = REGCACHE_MAPLE,  .from_reg = 0x2003 },