diff options
author | Mark Brown | 2014-08-04 17:19:57 +0100 |
---|---|---|
committer | Mark Brown | 2014-08-04 17:19:57 +0100 |
commit | e8b15c01732e74e29cad144c667bfb8792ef69fc (patch) | |
tree | b6a26368cd4d6ee665771b99231fe66abec25277 /include/linux | |
parent | 19583ca584d6f574384e17fe7613dfaeadcdc4a6 (diff) | |
parent | 1d33dc6b0f0fd1a1f65011f54165c558daf46638 (diff) |
Merge remote-tracking branch 'regmap/topic/getdev' into regmap-next
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/regmap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 7b0e4b425cdf..c5ed83f49c4e 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -396,6 +396,7 @@ void regmap_exit(struct regmap *map); int regmap_reinit_cache(struct regmap *map, const struct regmap_config *config); struct regmap *dev_get_regmap(struct device *dev, const char *name); +struct device *regmap_get_device(struct regmap *map); int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val); int regmap_raw_write(struct regmap *map, unsigned int reg, @@ -729,6 +730,12 @@ static inline struct regmap *dev_get_regmap(struct device *dev, return NULL; } +static inline struct device *regmap_get_device(struct regmap *map) +{ + WARN_ONCE(1, "regmap API is disabled"); + return NULL; +} + #endif #endif |