Skip to contentSkip to conversation

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

PATCH In review Mark Brown 2 participants 2 messages Aug 23, 2012 – Sep 11, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/mfd/wm8994-regmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/wm8994-regmap.c +1 -1
index 52e9e29..2fbce9c 100644
@@ -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;
Signature · 1 line
1.7.10.4
#1 lore raw

Hi Mark,

Quoted 7 lines · Mark Brown

Higher cust_ids have had the device revision field reset so need different handling of GPIO6.

---
 drivers/mfd/wm8994-regmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/