Skip to content

Commit

Permalink
mfd: Enable rbtree cache for wm831x devices
Browse files Browse the repository at this point in the history
Most useful with the regulators where we're doing a lot of read/modify/write
updates in potentially performance critical paths.  Providing some defaults
would make this slightly better but this is a win right now.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mark Brown committed Oct 17, 2011
1 parent de2d808 commit 7cccbdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/wm831x-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,8 @@ struct regmap_config wm831x_regmap_config = {
.reg_bits = 16,
.val_bits = 16,

.cache_type = REGCACHE_RBTREE,

.max_register = WM831X_DBE_CHECK_DATA,
.readable_reg = wm831x_reg_readable,
.writeable_reg = wm831x_reg_writeable,
Expand Down

0 comments on commit 7cccbdc

Please sign in to comment.