From: Mark Brown Date: Thu, 23 Aug 2012 14:47:52 +0000 (+0100) Subject: mfd: wm8994: Implement support for WM1811 devices with higher cust_ids X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1de74cfd69077c06507f444d7192aefc17784ab5;p=linux-beck.git 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: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c index 52e9e2944940..2fbce9c5950b 100644 --- a/drivers/mfd/wm8994-regmap.c +++ b/drivers/mfd/wm8994-regmap.c @@ -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;