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:
@@ -56,6 +56,7 @@ struct wm8994 {
|
||||
struct mutex irq_lock;
|
||||
|
||||
enum wm8994_type type;
|
||||
int revision;
|
||||
|
||||
struct device *dev;
|
||||
struct regmap *regmap;
|
||||
|
Reference in New Issue
Block a user