| @@ -396,6 +396,7 @@ void regmap_exit(struct regmap *map); · 395 unmodified lines |
| 396 | int regmap_reinit_cache(struct regmap *map, | 396 | int regmap_reinit_cache(struct regmap *map, |
| 397 | const struct regmap_config *config); | 397 | const struct regmap_config *config); |
| 398 | struct regmap *dev_get_regmap(struct device *dev, const char *name); | 398 | struct regmap *dev_get_regmap(struct device *dev, const char *name); |
| | 399 | struct device *regmap_get_device(struct regmap *map); |
| 399 | int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); | 400 | int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); |
| 400 | int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val); | 401 | int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val); |
| 401 | int regmap_raw_write(struct regmap *map, unsigned int reg, | 402 | int regmap_raw_write(struct regmap *map, unsigned int reg, |
| @@ -729,6 +730,12 @@ static inline struct regmap *dev_get_regmap(struct device *dev, · 327 unmodified lines |
| 729 | return NULL; | 730 | return NULL; |
| 730 | } | 731 | } |
| 731 | | 732 | |
| | 733 | static inline struct device *regmap_get_device(struct regmap *map) |
| | 734 | { |
| | 735 | WARN_ONCE(1, "regmap API is disabled"); |
| | 736 | return NULL; |
| | 737 | } |
| | 738 | |
| 732 | #endif | 739 | #endif |
| 733 | | 740 | |
| 734 | #endif | 741 | #endif |