History

Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into regulator-next

Mark Brown committed 12 years ago

Commit f955c8b2 parents ed4bf4f e8b15c02 files · +20 −0Browse files

Unified · Split

2 files
  1. drivers/base/regmap/regmap.c +13 −0
  2. include/linux/regmap.h +7 −0
drivers/base/regmap/regmap.c+13−0
@@ -1073,6 +1073,19 @@ struct regmap *dev_get_regmap(struct device *dev, const char *name) · 1072 unmodified lines
1073}1073}
1074EXPORT_SYMBOL_GPL(dev_get_regmap);1074EXPORT_SYMBOL_GPL(dev_get_regmap);
1075 1075
1076/**
1077 * regmap_get_device(): Obtain the device from a regmap
1078 *
1079 * @map: Register map to operate on.
1080 *
1081 * Returns the underlying device that the regmap has been created for.
1082 */
1083struct device *regmap_get_device(struct regmap *map)
1084{
1085 return map->dev;
1086}
1087EXPORT_SYMBOL_GPL(regmap_get_device);
1088
1076static int _regmap_select_page(struct regmap *map, unsigned int *reg,1089static int _regmap_select_page(struct regmap *map, unsigned int *reg,
1077 struct regmap_range_node *range,1090 struct regmap_range_node *range,
1078 unsigned int val_num)1091 unsigned int val_num)
include/linux/regmap.h+7−0
@@ -396,6 +396,7 @@ void regmap_exit(struct regmap *map); · 395 unmodified lines
396int regmap_reinit_cache(struct regmap *map,396int regmap_reinit_cache(struct regmap *map,
397 const struct regmap_config *config);397 const struct regmap_config *config);
398struct regmap *dev_get_regmap(struct device *dev, const char *name);398struct regmap *dev_get_regmap(struct device *dev, const char *name);
399struct device *regmap_get_device(struct regmap *map);
399int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);400int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
400int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);401int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
401int regmap_raw_write(struct regmap *map, unsigned int reg,402int 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
733static inline struct device *regmap_get_device(struct regmap *map)
734{
735 WARN_ONCE(1, "regmap API is disabled");
736 return NULL;
737}
738
732#endif739#endif
733 740
734#endif741#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t