mfd: Convert wm8994 to use generic regmap irq_chip

Factor out the irq_chip implementation, substantially reducing the code
size for the driver.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Mark Brown
2011-10-25 10:19:04 +02:00
parent e292b578c9
commit 8ab3069182
3 changed files with 35 additions and 165 deletions

View File

@@ -67,8 +67,7 @@ struct wm8994 {
int irq_base;
int irq;
u16 irq_masks_cur[WM8994_NUM_IRQ_REGS];
u16 irq_masks_cache[WM8994_NUM_IRQ_REGS];
struct regmap_irq_chip_data *irq_data;
/* Used over suspend/resume */
bool suspended;