Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305617
b: refs/heads/master
c: 2690dfd
h: refs/heads/master
i:
  305615: 920d43d
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 13, 2012
1 parent c342320 commit da9f727
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8664d4901fb17b55aea47ce4ab20fe82c6c177f2
refs/heads/master: 2690dfdb05abf3a8e11ff21ec12dbbe620a026fb
6 changes: 6 additions & 0 deletions trunk/drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,9 @@ int regmap_raw_write(struct regmap *map, unsigned int reg,
{
int ret;

if (val_len % map->format.val_bytes)
return -EINVAL;

map->lock(map);

ret = _regmap_raw_write(map, reg, val, val_len);
Expand Down Expand Up @@ -779,6 +782,9 @@ int regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
unsigned int v;
int ret, i;

if (val_len % map->format.val_bytes)
return -EINVAL;

map->lock(map);

if (regmap_volatile_range(map, reg, val_count) || map->cache_bypass ||
Expand Down

0 comments on commit da9f727

Please sign in to comment.