Skip to content

Commit b0f413b

Browse files
Bo LiuStefan-Schmidt
authored andcommitted
net: ieee802154: mcr20a: 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 <[email protected]> Message-ID: <[email protected]> Signed-off-by: Stefan Schmidt <[email protected]>
1 parent 35c6bba commit b0f413b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ieee802154/mcr20a.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static const struct regmap_config mcr20a_dar_regmap = {
251251
.val_bits = 8,
252252
.write_flag_mask = REGISTER_ACCESS | REGISTER_WRITE,
253253
.read_flag_mask = REGISTER_ACCESS | REGISTER_READ,
254-
.cache_type = REGCACHE_RBTREE,
254+
.cache_type = REGCACHE_MAPLE,
255255
.writeable_reg = mcr20a_dar_writeable,
256256
.readable_reg = mcr20a_dar_readable,
257257
.volatile_reg = mcr20a_dar_volatile,
@@ -387,7 +387,7 @@ static const struct regmap_config mcr20a_iar_regmap = {
387387
.val_bits = 8,
388388
.write_flag_mask = REGISTER_ACCESS | REGISTER_WRITE | IAR_INDEX,
389389
.read_flag_mask = REGISTER_ACCESS | REGISTER_READ | IAR_INDEX,
390-
.cache_type = REGCACHE_RBTREE,
390+
.cache_type = REGCACHE_MAPLE,
391391
.writeable_reg = mcr20a_iar_writeable,
392392
.readable_reg = mcr20a_iar_readable,
393393
.volatile_reg = mcr20a_iar_volatile,

0 commit comments

Comments
 (0)