]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regmap: core: Make raw write available to regcache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Mar 2013 19:19:34 +0000 (19:19 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 19:17:32 +0000 (19:17 +0000)
This allows the cache to sync values directly to the device when stored
in native format and also allows asynchronous I/O.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c

index 2b5851d42dbb0cc514c21090771e61818b7e776d..6d409350f50aa52b2b19e0113fa69c4998bffc9f 100644 (file)
@@ -195,6 +195,9 @@ bool regcache_set_val(struct regmap *map, void *base, unsigned int idx,
                      unsigned int val);
 int regcache_lookup_reg(struct regmap *map, unsigned int reg);
 
+int _regmap_raw_write(struct regmap *map, unsigned int reg,
+                     const void *val, size_t val_len, bool async);
+
 void regmap_async_complete_cb(struct regmap_async *async, int ret);
 
 extern struct regcache_ops regcache_rbtree_ops;
index 44a45cf0644bd9673a37d6463d0de55e97db0d43..9174c9d45a161e403201e51cd324a61658da01b5 100644 (file)
@@ -937,8 +937,8 @@ static int _regmap_select_page(struct regmap *map, unsigned int *reg,
        return 0;
 }
 
-static int _regmap_raw_write(struct regmap *map, unsigned int reg,
-                            const void *val, size_t val_len, bool async)
+int _regmap_raw_write(struct regmap *map, unsigned int reg,
+                     const void *val, size_t val_len, bool async)
 {
        struct regmap_range_node *range;
        unsigned long flags;