diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-25 07:57:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-25 07:57:45 -0400 |
commit | 4e7e2a2008f5d8c49791c412849d5b0232d39bb3 (patch) | |
tree | 32c3fa2d5cefb388689cb795225022769bf7b413 /include/linux/mfd/wm8994 | |
parent | 8a9ea3237e7eb5c25f09e429ad242ae5a3d5ea22 (diff) | |
parent | 7cccbdc84487616c3dbe493b04bfa1f362f4bc56 (diff) |
Merge branch 'for-linus' of git://opensource.wolfsonmicro.com/regmap
* 'for-linus' of git://opensource.wolfsonmicro.com/regmap: (62 commits)
mfd: Enable rbtree cache for wm831x devices
regmap: Support some block operations on cached devices
regmap: Allow caches for devices with no defaults
regmap: Ensure rbtree syncs registers set to zero properly
regmap: Allow rbtree to cache zero default values
regmap: Warn on raw I/O as well as bulk reads that bypass cache
regmap: Return a sensible error code if we fail to read the cache
regmap: Use bsearch() to search the register defaults
regmap: Fix doc comment
regmap: Optimize the lookup path to use binary search
regmap: Ensure we scream if we enable cache bypass/only at the same time
regmap: Implement regcache_cache_bypass helper function
regmap: Save/restore the bypass state upon syncing
regmap: Lock the sync path, ensure we use the lockless _regmap_write()
regmap: Fix apostrophe usage
regmap: Make _regmap_write() global
regmap: Fix lock used for regcache_cache_only()
regmap: Grab the lock in regcache_cache_only()
regmap: Modify map->cache_bypass directly
regmap: Fix regcache_sync generic implementation
...
Diffstat (limited to 'include/linux/mfd/wm8994')
-rw-r--r-- | include/linux/mfd/wm8994/core.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/mfd/wm8994/core.h b/include/linux/mfd/wm8994/core.h index f0b69cdae41c..45df450d869f 100644 --- a/include/linux/mfd/wm8994/core.h +++ b/include/linux/mfd/wm8994/core.h | |||
@@ -24,6 +24,7 @@ enum wm8994_type { | |||
24 | 24 | ||
25 | struct regulator_dev; | 25 | struct regulator_dev; |
26 | struct regulator_bulk_data; | 26 | struct regulator_bulk_data; |
27 | struct regmap; | ||
27 | 28 | ||
28 | #define WM8994_NUM_GPIO_REGS 11 | 29 | #define WM8994_NUM_GPIO_REGS 11 |
29 | #define WM8994_NUM_LDO_REGS 2 | 30 | #define WM8994_NUM_LDO_REGS 2 |
@@ -50,18 +51,12 @@ struct regulator_bulk_data; | |||
50 | #define WM8994_IRQ_GPIO(x) (x + WM8994_IRQ_TEMP_WARN) | 51 | #define WM8994_IRQ_GPIO(x) (x + WM8994_IRQ_TEMP_WARN) |
51 | 52 | ||
52 | struct wm8994 { | 53 | struct wm8994 { |
53 | struct mutex io_lock; | ||
54 | struct mutex irq_lock; | 54 | struct mutex irq_lock; |
55 | 55 | ||
56 | enum wm8994_type type; | 56 | enum wm8994_type type; |
57 | 57 | ||
58 | struct device *dev; | 58 | struct device *dev; |
59 | int (*read_dev)(struct wm8994 *wm8994, unsigned short reg, | 59 | struct regmap *regmap; |
60 | int bytes, void *dest); | ||
61 | int (*write_dev)(struct wm8994 *wm8994, unsigned short reg, | ||
62 | int bytes, const void *src); | ||
63 | |||
64 | void *control_data; | ||
65 | 60 | ||
66 | int gpio_base; | 61 | int gpio_base; |
67 | int irq_base; | 62 | int irq_base; |