Commit 1de74cfd authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz

mfd: wm8994: Implement support for WM1811 devices with higher cust_ids

Higher cust_ids have had the device revision field reset so need different
handling of GPIO6.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 3080de4e
......@@ -1136,7 +1136,7 @@ static bool wm1811_volatile_register(struct device *dev, unsigned int reg)
switch (reg) {
case WM8994_GPIO_6:
if (wm8994->revision > 1)
if (wm8994->cust_id > 1 || wm8994->revision > 1)
return true;
else
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment