diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-02-23 06:08:05 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-03-07 16:17:33 -0500 |
commit | d19663ac61a6e36eec655d3c84a106686ebddd2c (patch) | |
tree | 186e46cad833116613f9cdd1c11fde53b0aa32e5 /include/linux/mfd | |
parent | 11a441ce82d6ffecfd39b324024de0cd630b36c1 (diff) |
mfd: Use completion interrupt for WM835x AUXADC
Use the completion interrupt generated by the device rather than
polling for conversions to complete. As a backup we still check
the state of the AUXADC if we don't get a completion, mostly for
systems that don't have the WM8350 interrupt infrastructure hooked
up.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/wm8350/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h index fae08aa65413..98fcc977e82b 100644 --- a/include/linux/mfd/wm8350/core.h +++ b/include/linux/mfd/wm8350/core.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/mutex.h> | 17 | #include <linux/mutex.h> |
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/completion.h> | ||
19 | 20 | ||
20 | #include <linux/mfd/wm8350/audio.h> | 21 | #include <linux/mfd/wm8350/audio.h> |
21 | #include <linux/mfd/wm8350/gpio.h> | 22 | #include <linux/mfd/wm8350/gpio.h> |
@@ -621,6 +622,7 @@ struct wm8350 { | |||
621 | u16 *reg_cache; | 622 | u16 *reg_cache; |
622 | 623 | ||
623 | struct mutex auxadc_mutex; | 624 | struct mutex auxadc_mutex; |
625 | struct completion auxadc_done; | ||
624 | 626 | ||
625 | /* Interrupt handling */ | 627 | /* Interrupt handling */ |
626 | struct mutex irq_lock; | 628 | struct mutex irq_lock; |