Skip to content

Commit

Permalink
mfd: wm8994: Implement support for WM1811 devices with higher cust_ids
Browse files Browse the repository at this point in the history
Higher cust_ids have had the device revision field reset so need different
handling of GPIO6.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Sep 14, 2012
1 parent 3080de4 commit 1de74cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/wm8994-regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1de74cf

Please sign in to comment.