Skip to content

Commit

Permalink
regmap: Add stub for regcache_sync_region()
Browse files Browse the repository at this point in the history
Added on another branch.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Mar 1, 2012
1 parent 5d5b7d4 commit a313f9f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/regmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,13 @@ static inline int regcache_sync(struct regmap *map)
return -EINVAL;
}

static inline int regcache_sync_region(struct regmap *map, unsigned int min,
unsigned int max)
{
WARN_ONCE(1, "regmap API is disabled");
return -EINVAL;
}

static inline void regcache_cache_only(struct regmap *map, bool enable)
{
WARN_ONCE(1, "regmap API is disabled");
Expand Down

0 comments on commit a313f9f

Please sign in to comment.