Lines Matching refs:wm8994
141 int wm8994_irq_init(struct wm8994 *wm8994) in wm8994_irq_init() argument
145 struct wm8994_pdata *pdata = wm8994->dev->platform_data; in wm8994_irq_init()
147 if (!wm8994->irq) { in wm8994_irq_init()
148 dev_warn(wm8994->dev, in wm8994_irq_init()
150 wm8994->irq_base = 0; in wm8994_irq_init()
159 ret = regmap_add_irq_chip(wm8994->regmap, wm8994->irq, in wm8994_irq_init()
161 wm8994->irq_base, &wm8994_irq_chip, in wm8994_irq_init()
162 &wm8994->irq_data); in wm8994_irq_init()
164 dev_err(wm8994->dev, "Failed to register IRQ chip: %d\n", ret); in wm8994_irq_init()
169 wm8994_reg_write(wm8994, WM8994_INTERRUPT_CONTROL, 0); in wm8994_irq_init()
174 void wm8994_irq_exit(struct wm8994 *wm8994) in wm8994_irq_exit() argument
176 regmap_del_irq_chip(wm8994->irq, wm8994->irq_data); in wm8994_irq_exit()