diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-09 03:34:29 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-22 07:32:22 -0400 |
| commit | 50eeef5d3cea5afcced17a0410e8b0bf88997845 (patch) | |
| tree | 192eef21bf6b656755a18b4f4fb218462a5ec359 /include/linux | |
| parent | d6c645fc00777a6f8a7df1f580065ec30c71be7b (diff) | |
mfd: Convert WM8400 to regmap API
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/wm8400-private.h | 7 |
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 @@ | |||
| 25 | #include <linux/mutex.h> | 25 | #include <linux/mutex.h> |
| 26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
| 27 | 27 | ||
| 28 | struct regmap; | ||
| 29 | |||
| 28 | #define WM8400_REGISTER_COUNT 0x55 | 30 | #define WM8400_REGISTER_COUNT 0x55 |
| 29 | 31 | ||
| 30 | struct wm8400 { | 32 | struct wm8400 { |
| 31 | struct device *dev; | 33 | struct device *dev; |
| 32 | 34 | ||
| 33 | int (*read_dev)(void *data, char reg, int count, u16 *dst); | ||
| 34 | int (*write_dev)(void *data, char reg, int count, const u16 *src); | ||
| 35 | |||
| 36 | struct mutex io_lock; | 35 | struct mutex io_lock; |
| 37 | void *io_data; | 36 | struct regmap *regmap; |
| 38 | 37 | ||
| 39 | u16 reg_cache[WM8400_REGISTER_COUNT]; | 38 | u16 reg_cache[WM8400_REGISTER_COUNT]; |
| 40 | 39 | ||
