Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280547
b: refs/heads/master
c: 064d4db
h: refs/heads/master
i:
  280545: 296a1de
  280543: 5dd07a2
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Nov 17, 2011
1 parent ae5071f commit 5b4a5ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e5ec63ef574775900c82bd98f95bf039f513de3
refs/heads/master: 064d4db11e23949c40b8a2f2f6be11c131b53932
4 changes: 2 additions & 2 deletions trunk/drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ int regcache_init(struct regmap *map, const struct regmap_config *config)
map->num_reg_defaults = config->num_reg_defaults;
map->num_reg_defaults_raw = config->num_reg_defaults_raw;
map->reg_defaults_raw = config->reg_defaults_raw;
map->cache_size_raw = (config->val_bits / 8) * config->num_reg_defaults_raw;
map->cache_word_size = config->val_bits / 8;
map->cache_word_size = DIV_ROUND_UP(config->val_bits, 8);
map->cache_size_raw = map->cache_word_size * config->num_reg_defaults_raw;

map->cache = NULL;
map->cache_ops = cache_types[i];
Expand Down

0 comments on commit 5b4a5ed

Please sign in to comment.