Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294139
b: refs/heads/master
c: c212acc
h: refs/heads/master
i:
  294137: bacdeb3
  294135: 3837427
v: v3
  • Loading branch information
Wolfram Sang authored and Mark Brown committed Jan 29, 2012
1 parent aff57a2 commit e721928
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: 9aa507505cdcd10b7390398790f013374ee74a26
refs/heads/master: c212acccc368a087a53559aac2b7d3be941b1252
4 changes: 2 additions & 2 deletions trunk/drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ struct regmap *regmap_init(struct device *dev,

mutex_init(&map->lock);
map->format.buf_size = (config->reg_bits + config->val_bits) / 8;
map->format.reg_bytes = config->reg_bits / 8;
map->format.reg_bytes = DIV_ROUND_UP(config->reg_bits, 8);
map->format.pad_bytes = config->pad_bits / 8;
map->format.val_bytes = config->val_bits / 8;
map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8);
map->format.buf_size += map->format.pad_bytes;
map->dev = dev;
map->bus = bus;
Expand Down

0 comments on commit e721928

Please sign in to comment.