diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-02-03 13:01:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-04 15:48:11 -0500 |
commit | 3c174d29263b1954171cf857a9bf59dcbe527875 (patch) | |
tree | a3dc10376a32c792710505f408ae9145d2d1ce8d | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
regmap: Export regmap_get_val_endian
We'll need to call it from regmap-i2c.c, which can be built as module.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/base/regmap/internal.h | 4 | ||||
-rw-r--r-- | drivers/base/regmap/regmap.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 0da5865df5b1..c49a79edae52 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
@@ -233,6 +233,10 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg, | |||
233 | 233 | ||
234 | void regmap_async_complete_cb(struct regmap_async *async, int ret); | 234 | void regmap_async_complete_cb(struct regmap_async *async, int ret); |
235 | 235 | ||
236 | enum regmap_endian regmap_get_val_endian(struct device *dev, | ||
237 | const struct regmap_bus *bus, | ||
238 | const struct regmap_config *config); | ||
239 | |||
236 | extern struct regcache_ops regcache_rbtree_ops; | 240 | extern struct regcache_ops regcache_rbtree_ops; |
237 | extern struct regcache_ops regcache_lzo_ops; | 241 | extern struct regcache_ops regcache_lzo_ops; |
238 | extern struct regcache_ops regcache_flat_ops; | 242 | extern struct regcache_ops regcache_flat_ops; |
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index d2f8a818d200..f99b098ddabf 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c | |||
@@ -473,9 +473,9 @@ static enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus, | |||
473 | return REGMAP_ENDIAN_BIG; | 473 | return REGMAP_ENDIAN_BIG; |
474 | } | 474 | } |
475 | 475 | ||
476 | static enum regmap_endian regmap_get_val_endian(struct device *dev, | 476 | enum regmap_endian regmap_get_val_endian(struct device *dev, |
477 | const struct regmap_bus *bus, | 477 | const struct regmap_bus *bus, |
478 | const struct regmap_config *config) | 478 | const struct regmap_config *config) |
479 | { | 479 | { |
480 | struct device_node *np; | 480 | struct device_node *np; |
481 | enum regmap_endian endian; | 481 | enum regmap_endian endian; |
@@ -513,6 +513,7 @@ static enum regmap_endian regmap_get_val_endian(struct device *dev, | |||
513 | /* Use this if no other value was found */ | 513 | /* Use this if no other value was found */ |
514 | return REGMAP_ENDIAN_BIG; | 514 | return REGMAP_ENDIAN_BIG; |
515 | } | 515 | } |
516 | EXPORT_SYMBOL_GPL(regmap_get_val_endian); | ||
516 | 517 | ||
517 | /** | 518 | /** |
518 | * regmap_init(): Initialise register map | 519 | * regmap_init(): Initialise register map |