mfd: Enable rbtree cache for wm831x devices
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 9 Oct 2011 12:38:06 +0000 (13:38 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 17 Oct 2011 22:03:32 +0000 (23:03 +0100)
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>
drivers/mfd/wm831x-core.c

index e758c89ac5bb5aa08e3ffe591dadc431c0b333e1..0a2b8d41a7020229223c7dcf5876d2d9cc532b43 100644 (file)
@@ -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,