regmap: Make _regmap_write() global
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 29 Sep 2011 09:39:07 +0000 (10:39 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 29 Sep 2011 10:19:45 +0000 (11:19 +0100)
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c

index 2d51b1b099f7aadb847f34b2bbcf77a81069ef4a..348ff02eb93e02a66887b59995900335f7214fc0 100644 (file)
@@ -91,6 +91,9 @@ bool regmap_readable(struct regmap *map, unsigned int reg);
 bool regmap_volatile(struct regmap *map, unsigned int reg);
 bool regmap_precious(struct regmap *map, unsigned int reg);
 
+int _regmap_write(struct regmap *map, unsigned int reg,
+                 unsigned int val);
+
 #ifdef CONFIG_DEBUG_FS
 extern void regmap_debugfs_initcall(void);
 extern void regmap_debugfs_init(struct regmap *map);
index 35964659a81d610eb3263a01a088d7f06586cf8a..d786ddcaf1173a88fdbb29c52744cc4937b8a898 100644 (file)
@@ -296,8 +296,8 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
        return ret;
 }
 
-static int _regmap_write(struct regmap *map, unsigned int reg,
-                        unsigned int val)
+int _regmap_write(struct regmap *map, unsigned int reg,
+                 unsigned int val)
 {
        int ret;
        BUG_ON(!map->format.format_write && !map->format.format_val);