From: Mark Brown Date: Sun, 9 Oct 2011 12:38:06 +0000 (+0100) Subject: mfd: Enable rbtree cache for wm831x devices X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7cccbdc84487616c3dbe493b04bfa1f362f4bc56;p=linux-beck.git mfd: Enable rbtree cache for wm831x devices 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 Acked-by: Samuel Ortiz --- diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c index e758c89ac5bb..0a2b8d41a702 100644 --- a/drivers/mfd/wm831x-core.c +++ b/drivers/mfd/wm831x-core.c @@ -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,