diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-16 16:21:47 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-24 16:09:14 +0400 |
commit | 7583a213ec3bde3082547ee37ad96214513bc1cb (patch) | |
tree | f70ceb258fa895d2cc5aeea8ef4f3d790ce30d04 /include/linux/mfd/wm831x/core.h | |
parent | 1f08c1125ed1c9a6ca9bb195a56fe340b2134018 (diff) | |
download | linux-7583a213ec3bde3082547ee37ad96214513bc1cb.tar.xz |
mfd: Simulate active high IRQs with wm831x
In order to ease system integration provide a simulation of active high
IRQs on the GPIOs by polling the GPIO status when an IRQ is generated.
This isn't ideal on several fronts and will miss initially active IRQs in
the current implementation but it should work well for most cases.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/wm831x/core.h')
-rw-r--r-- | include/linux/mfd/wm831x/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h index fb3e84f92e90..272f7fb5f8b8 100644 --- a/include/linux/mfd/wm831x/core.h +++ b/include/linux/mfd/wm831x/core.h @@ -385,6 +385,7 @@ struct wm831x { /* Used by the interrupt controller code to post writes */ int gpio_update[WM831X_NUM_GPIO_REGS]; + bool gpio_level[WM831X_NUM_GPIO_REGS]; struct mutex auxadc_lock; struct list_head auxadc_pending; |