aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-09 16:34:29 +0900
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-22 12:32:22 +0100
commit50eeef5d3cea5afcced17a0410e8b0bf88997845 (patch)
tree192eef21bf6b656755a18b4f4fb218462a5ec359 /include/linux/mfd
parentmfd: Convert WM8994 to use new register map API (diff)
downloadlinux-dev-50eeef5d3cea5afcced17a0410e8b0bf88997845.tar.xz
linux-dev-50eeef5d3cea5afcced17a0410e8b0bf88997845.zip
mfd: Convert WM8400 to regmap API
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/wm8400-private.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/mfd/wm8400-private.h b/include/linux/mfd/wm8400-private.h
index 2aab4e93a5c9..0147b6968510 100644
--- a/include/linux/mfd/wm8400-private.h
+++ b/include/linux/mfd/wm8400-private.h
@@ -25,16 +25,15 @@
#include <linux/mutex.h>
#include <linux/platform_device.h>
+struct regmap;
+
#define WM8400_REGISTER_COUNT 0x55
struct wm8400 {
struct device *dev;
- int (*read_dev)(void *data, char reg, int count, u16 *dst);
- int (*write_dev)(void *data, char reg, int count, const u16 *src);
-
struct mutex io_lock;
- void *io_data;
+ struct regmap *regmap;
u16 reg_cache[WM8400_REGISTER_COUNT];