media: i2c: max2175: convert to use maple tree register cache
authorBo Liu <liubo03@inspur.com>
Wed, 17 Jan 2024 03:10:24 +0000 (04:10 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 12:39:59 +0000 (13:39 +0100)
The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/max2175.c

index 70c2a2948fd4ea2ef2e5be0b0fa1d0c24b8d2986..cd73d2096ae451648991a4b52ae7edbb06be7fac 100644 (file)
@@ -257,7 +257,7 @@ static const struct regmap_config max2175_regmap_config = {
        .reg_defaults = max2175_reg_defaults,
        .num_reg_defaults = ARRAY_SIZE(max2175_reg_defaults),
        .volatile_table = &max2175_volatile_regs,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 };
 
 struct max2175 {