Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294149
b: refs/heads/master
c: a3c3774
h: refs/heads/master
i:
  294147: f0c51da
v: v3
  • Loading branch information
Mark Brown committed Feb 23, 2012
1 parent ac3fee1 commit 8d9cbb0
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: f0c2319f9f196726ebe4d7508fd8fbd804988db3
refs/heads/master: a3c3774176838bbfa4f6e48133644903818e56dc
6 changes: 6 additions & 0 deletions trunk/drivers/base/regmap/regcache-lzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,12 @@ static int regcache_lzo_sync(struct regmap *map)
ret = regcache_read(map, i, &val);
if (ret)
return ret;

/* Is this the hardware default? If so skip. */
ret = regcache_lookup_reg(map, i);
if (ret > 0 && val == map->reg_defaults[ret].def)
continue;

map->cache_bypass = 1;
ret = _regmap_write(map, i, val);
map->cache_bypass = 0;
Expand Down

0 comments on commit 8d9cbb0

Please sign in to comment.