aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/wm831x/core.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-06-02 19:18:52 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-31 23:28:20 +0200
commitc1a82780b41e78f31636c49279ce940afe60a453 (patch)
treea8769c072230d413c53fbfffa46d466965c8510f /include/linux/mfd/wm831x/core.h
parentmfd: Support dynamic allocation of IRQ range for wm831x (diff)
downloadlinux-dev-c1a82780b41e78f31636c49279ce940afe60a453.tar.xz
linux-dev-c1a82780b41e78f31636c49279ce940afe60a453.zip
mfd: Read wm831x AUXADC conversion results before acknowledging interrupt
Ensure that there's no possibility of loosing an AUXADC interrupt by reading the conversion result in the IRQ handler when using interrupts. Otherwise it's possible that under very heavy load a new conversion could be initiated before the acknowledgement for a previous interrupt has happened. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to '')
-rw-r--r--include/linux/mfd/wm831x/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h
index 9564cf315276..592e4fd6ab3f 100644
--- a/include/linux/mfd/wm831x/core.h
+++ b/include/linux/mfd/wm831x/core.h
@@ -278,6 +278,7 @@ struct wm831x {
struct mutex auxadc_lock;
struct completion auxadc_done;
+ u16 auxadc_data;
/* The WM831x has a security key blocking access to certain
* registers. The mutex is taken by the accessors for locking