From 51f84025bb00f9bfa7a05ee734cbbd39f2f04dd6 Mon Sep 17 00:00:00 2001 From: Cheng-Cheng Lo Date: Tue, 29 Oct 2024 16:19:41 +0800 Subject: [PATCH] FROMGIT: regmap: kunit: Fix repeated test param 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 Link: https://patch.msgid.link/20241029081941.3264566-1-locc@google.com Signed-off-by: Mark Brown Bug: 371482271 (cherry picked from commit 96a54082424dc9d430076563031d9b576176674e https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next) Change-Id: Ie6cff618bd7f1b99e95fec3b0f1bc429bcccc5bb Signed-off-by: Cheng-Cheng Lo --- drivers/base/regmap/regmap-kunit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap/regmap-kunit.c b/drivers/base/regmap/regmap-kunit.c index 4bf3f1e59ed7..3add2aa6d6d8 100644 --- a/drivers/base/regmap/regmap-kunit.c +++ b/drivers/base/regmap/regmap-kunit.c @@ -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 },