Lines Matching full:wm8994

3  * include/linux/mfd/wm8994/core.h -- Core interface for WM8994
17 #include <linux/mfd/wm8994/pdata.h>
20 WM8994 = 0, enumerator
53 struct wm8994 { struct
82 static inline int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) in wm8994_reg_read() argument
87 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read()
95 static inline int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_reg_write() argument
98 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write()
101 static inline int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_read() argument
104 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read()
107 static inline int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_write() argument
110 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write()
113 static inline int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, in wm8994_set_bits() argument
116 return regmap_update_bits(wm8994->regmap, reg, mask, val); in wm8994_set_bits()
120 static inline int wm8994_request_irq(struct wm8994 *wm8994, int irq, in wm8994_request_irq() argument
124 if (!wm8994->irq_data) in wm8994_request_irq()
126 return request_threaded_irq(regmap_irq_get_virq(wm8994->irq_data, irq), in wm8994_request_irq()
130 static inline void wm8994_free_irq(struct wm8994 *wm8994, int irq, void *data) in wm8994_free_irq() argument
132 if (!wm8994->irq_data) in wm8994_free_irq()
134 free_irq(regmap_irq_get_virq(wm8994->irq_data, irq), data); in wm8994_free_irq()
137 int wm8994_irq_init(struct wm8994 *wm8994);
138 void wm8994_irq_exit(struct wm8994 *wm8994);