aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorBo Liu <liubo03@inspur.com>2024-01-17 04:11:34 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-02-01 13:39:35 +0100
commita48a824fbc032b8cc80a508b6d2bf925a39b7930 (patch)
treea39c0b78c5cf4c8fd1595df4ba8adb0ee026837c /drivers/media
parenta45e0e762459bf4212c094c085806c5a43988019 (diff)
downloadlinux-a48a824fbc032b8cc80a508b6d2bf925a39b7930.tar.gz
media: i2c: tvp5150: convert to use maple tree register cache
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/tvp5150.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index 9fc586cfdcd87..64b91aa3c82a8 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -1817,7 +1817,7 @@ static struct regmap_config tvp5150_config = {
.val_bits = 8,
.max_register = 0xff,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.rd_table = &tvp5150_readable_table,
.volatile_reg = tvp5150_volatile_reg,