From: Dimitris Papastamos Date: Thu, 29 Sep 2011 09:39:07 +0000 (+0100) Subject: regmap: Make _regmap_write() global X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4d2dc09538561eb8823c3c0072e6f5b868a5abe1;p=linux-beck.git regmap: Make _regmap_write() global Signed-off-by: Dimitris Papastamos Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 2d51b1b099f7..348ff02eb93e 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -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); diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 35964659a81d..d786ddcaf117 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -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);