]> Pileus Git - ~andy/linux/blobdiff - include/linux/mfd/wm8994/core.h
Merge branch 'for-next' of git://git.infradead.org/users/sameo/mfd-2.6
[~andy/linux] / include / linux / mfd / wm8994 / core.h
index 5ab71bd76f9c77a5c178f93945f7185fb2d368da..f44bdb7273bd819b5c30b4dba7d808a4ad46e015 100644 (file)
 enum wm8994_type {
        WM8994 = 0,
        WM8958 = 1,
+       WM1811 = 2,
 };
 
 struct regulator_dev;
 struct regulator_bulk_data;
+struct regmap;
 
 #define WM8994_NUM_GPIO_REGS 11
 #define WM8994_NUM_LDO_REGS   2
@@ -50,18 +52,12 @@ struct regulator_bulk_data;
 #define WM8994_IRQ_GPIO(x) (x + WM8994_IRQ_TEMP_WARN)
 
 struct wm8994 {
-       struct mutex io_lock;
        struct mutex irq_lock;
 
        enum wm8994_type type;
 
        struct device *dev;
-       int (*read_dev)(struct wm8994 *wm8994, unsigned short reg,
-                       int bytes, void *dest);
-       int (*write_dev)(struct wm8994 *wm8994, unsigned short reg,
-                        int bytes, const void *src);
-
-       void *control_data;
+       struct regmap *regmap;
 
        bool ldo_ena_always_driven;