diff options
author | Mark Brown | 2011-09-16 14:21:47 +0200 |
---|---|---|
committer | Samuel Ortiz | 2011-10-24 14:09:14 +0200 |
commit | 7583a213ec3bde3082547ee37ad96214513bc1cb (patch) | |
tree | f70ceb258fa895d2cc5aeea8ef4f3d790ce30d04 /include/linux/mfd/wm831x/core.h | |
parent | ARM: imx/mx31moboard: Add mc13783 power button support (diff) | |
download | kernel-qcow2-linux-7583a213ec3bde3082547ee37ad96214513bc1cb.tar.gz kernel-qcow2-linux-7583a213ec3bde3082547ee37ad96214513bc1cb.tar.xz kernel-qcow2-linux-7583a213ec3bde3082547ee37ad96214513bc1cb.zip |
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; |