summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-01 13:55:49 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-12 16:11:49 (GMT)
commit7ed5849c2861faf9c13f027868f635bd782a50e5 (patch)
treee95a181de00ee76fac4e574993dea738638b5589 /include/linux/mfd
parent19f9557174d61fcfe132a6846a83c36437ff014e (diff)
downloadlinux-fsl-qoriq-7ed5849c2861faf9c13f027868f635bd782a50e5.tar.xz
mfd: Mark WM1811 GPIO6 register volatile for later revisions
For later chip revisions the WM1811 GPIO6 register is always volatile so store the device revision when initialising the driver and then check at runtime if we're running on a newer device. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/wm8994/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/core.h b/include/linux/mfd/wm8994/core.h
index f537d2e..4dd4409 100644
--- a/include/linux/mfd/wm8994/core.h
+++ b/include/linux/mfd/wm8994/core.h
@@ -56,6 +56,7 @@ struct wm8994 {
struct mutex irq_lock;
enum wm8994_type type;
+ int revision;
struct device *dev;
struct regmap *regmap;