diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-01 13:55:49 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-13 00:11:49 +0800 |
commit | 7ed5849c2861faf9c13f027868f635bd782a50e5 (patch) | |
tree | e95a181de00ee76fac4e574993dea738638b5589 /include/linux/mfd/wm8994 | |
parent | 19f9557174d61fcfe132a6846a83c36437ff014e (diff) | |
download | talos-op-linux-7ed5849c2861faf9c13f027868f635bd782a50e5.tar.gz talos-op-linux-7ed5849c2861faf9c13f027868f635bd782a50e5.zip |
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/wm8994')
-rw-r--r-- | include/linux/mfd/wm8994/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/core.h b/include/linux/mfd/wm8994/core.h index f537d2eae390..4dd4409678ce 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; |