diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-07-31 15:44:03 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-01 18:08:55 -0700 |
commit | b38a60e86cc3ec0b289afb71f704838b0c34aa5e (patch) | |
tree | b62dc89e6b8f33d34f4d60defba0c357f9a212c5 | |
parent | a6026ba7d591ac1a851b72ff6ed127c6f76d803a (diff) |
regulator: tps62361: make all register as non-volatile
All register fo TPS62361 is non-volatile and so implementing
this api for regmap actual caching.
bug 993297
Change-Id: I7695ed54bdb0fd9dec13e735264c12b60e18777a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119592
-rw-r--r-- | drivers/regulator/tps62360-regulator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index 7db148202436..095104f73b57 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c @@ -323,9 +323,15 @@ static int __devinit tps62360_init_dcdc(struct tps62360_chip *tps, return ret; } +static bool is_volatile_reg(struct device *dev, unsigned int reg) +{ + return false; +} + static const struct regmap_config tps62360_regmap_config = { .reg_bits = 8, .val_bits = 8, + .volatile_reg = is_volatile_reg, .max_register = REG_CHIPID, .cache_type = REGCACHE_RBTREE, }; |