diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-03-01 15:12:45 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:42:01 -0400 |
commit | d664f20020e0a3564d7aaba6625aa58d24283b7d (patch) | |
tree | 2b4c6fda77ed26661a9afcb9891ed8a91aec478b /drivers/mfd | |
parent | f624effb7354814d062f149c8a1e2c46a44acb1f (diff) |
mfd: Convert WM8994/58 interrupt masking to enable/disable operations
The WM8994/58 interrupt masking support is a much better match for the genirq
enable and disable operations than for the mask and unmask operations. The
latter are intended to used during interrupt handling for temporary changes
which isn't really practical on a slow bus. Convert the operations over to
match this.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm8994-irq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/wm8994-irq.c b/drivers/mfd/wm8994-irq.c index 29e8faf9c01c..f5e439a37dc5 100644 --- a/drivers/mfd/wm8994-irq.c +++ b/drivers/mfd/wm8994-irq.c | |||
@@ -182,7 +182,7 @@ static void wm8994_irq_sync_unlock(struct irq_data *data) | |||
182 | mutex_unlock(&wm8994->irq_lock); | 182 | mutex_unlock(&wm8994->irq_lock); |
183 | } | 183 | } |
184 | 184 | ||
185 | static void wm8994_irq_unmask(struct irq_data *data) | 185 | static void wm8994_irq_enable(struct irq_data *data) |
186 | { | 186 | { |
187 | struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); | 187 | struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); |
188 | struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, | 188 | struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, |
@@ -191,7 +191,7 @@ static void wm8994_irq_unmask(struct irq_data *data) | |||
191 | wm8994->irq_masks_cur[irq_data->reg - 1] &= ~irq_data->mask; | 191 | wm8994->irq_masks_cur[irq_data->reg - 1] &= ~irq_data->mask; |
192 | } | 192 | } |
193 | 193 | ||
194 | static void wm8994_irq_mask(struct irq_data *data) | 194 | static void wm8994_irq_disable(struct irq_data *data) |
195 | { | 195 | { |
196 | struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); | 196 | struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data); |
197 | struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, | 197 | struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994, |
@@ -204,8 +204,8 @@ static struct irq_chip wm8994_irq_chip = { | |||
204 | .name = "wm8994", | 204 | .name = "wm8994", |
205 | .irq_bus_lock = wm8994_irq_lock, | 205 | .irq_bus_lock = wm8994_irq_lock, |
206 | .irq_bus_sync_unlock = wm8994_irq_sync_unlock, | 206 | .irq_bus_sync_unlock = wm8994_irq_sync_unlock, |
207 | .irq_mask = wm8994_irq_mask, | 207 | .irq_disable = wm8994_irq_disable, |
208 | .irq_unmask = wm8994_irq_unmask, | 208 | .irq_enable = wm8994_irq_enable, |
209 | }; | 209 | }; |
210 | 210 | ||
211 | /* The processing of the primary interrupt occurs in a thread so that | 211 | /* The processing of the primary interrupt occurs in a thread so that |