Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Mark Brown and committed by
Samuel Ortiz
1de74cfd 3080de4e

+1 -1
+1 -1
drivers/mfd/wm8994-regmap.c
··· 1136 1136 1137 1137 switch (reg) { 1138 1138 case WM8994_GPIO_6: 1139 - if (wm8994->revision > 1) 1139 + if (wm8994->cust_id > 1 || wm8994->revision > 1) 1140 1140 return true; 1141 1141 else 1142 1142 return false;