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>
This commit is contained in:
Mark Brown
2011-12-01 13:55:49 +00:00
parent 19f9557174
commit 7ed5849c28
3 changed files with 25 additions and 7 deletions

View File

@@ -56,6 +56,7 @@ struct wm8994 {
struct mutex irq_lock;
enum wm8994_type type;
int revision;
struct device *dev;
struct regmap *regmap;