Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267008
b: refs/heads/master
c: ac77a76
h: refs/heads/master
v: v3
  • Loading branch information
Dimitris Papastamos authored and Mark Brown committed Sep 30, 2011
1 parent 0a25e4a commit eab1459
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 6eb0f5e0154facfe4f0acdb9f474cde773319efc
refs/heads/master: ac77a765cb6e3b5aa41c186ad9f37db7fdad7dbe
2 changes: 2 additions & 0 deletions trunk/drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ EXPORT_SYMBOL_GPL(regcache_sync);
void regcache_cache_only(struct regmap *map, bool enable)
{
mutex_lock(&map->lock);
WARN_ON(map->cache_bypass && enable);
map->cache_only = enable;
mutex_unlock(&map->lock);
}
Expand All @@ -300,6 +301,7 @@ EXPORT_SYMBOL_GPL(regcache_cache_only);
void regcache_cache_bypass(struct regmap *map, bool enable)
{
mutex_lock(&map->lock);
WARN_ON(map->cache_only && enable);
map->cache_bypass = enable;
mutex_unlock(&map->lock);
}
Expand Down

0 comments on commit eab1459

Please sign in to comment.